Interface OwnerRoleFactory

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface OwnerRoleFactory
    A provider of roles for a given owner.
    Author:
    Fabrizio Giudici
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> java.util.Collection<T> findRoles​(java.lang.Class<? extends T> roleType)
      Returns all role instances of the given type.
    • Method Detail

      • findRoles

        @Nonnull
        <T> java.util.Collection<T> findRoles​(@Nonnull
                                              java.lang.Class<? extends T> roleType)
        Returns all role instances of the given type.
        Type Parameters:
        T - the static type of the role
        Parameters:
        roleType - the dynamic type of the role
        Returns:
        a collection of roles