Interface RoleManager

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  RoleManager.Locator
      A locator for the RoleManager which uses the ServiceLoader facility to be independent of any DI framework.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> java.util.List<T> findRoles​(java.lang.Object owner, java.lang.Class<? extends T> roleType)
      Retrieves the roles of the given class for the given owner object.
    • Method Detail

      • findRoles

        @Nonnull
        <T> java.util.List<T> findRoles​(@Nonnull
                                        java.lang.Object owner,
                                        @Nonnull
                                        java.lang.Class<? extends T> roleType)
        Retrieves the roles of the given class for the given owner object.
        Type Parameters:
        T - the static type of the roles
        Parameters:
        owner - the owner object
        roleType - the dynamic type of the roles
        Returns:
        a list of roles