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

    Modifier and Type
    Method
    Description
    <T> Collection<T>
    findRoles(Class<? extends T> roleType)
    Returns all role instances of the given type.
  • Method Details

    • findRoles

      @Nonnull <T> Collection<T> findRoles(@Nonnull 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