Interface OwnerRoleFactoryProvider

  • All Known Implementing Classes:
    OwnerRoleFactoryProvider.SimpleOwnerRoleFactoryProvider
    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 OwnerRoleFactoryProvider
    The provider of the singleton OwnerRoleFactory.
    Author:
    Fabrizio Giudici
    • Method Detail

      • createRoleFactory

        @Nonnull
        OwnerRoleFactory createRoleFactory​(@Nonnull
                                           java.lang.Object owner)
        Creates an OwnerRoleFactory for the given object
        Parameters:
        owner - the object
        Returns:
        AsDelegate
      • emptyRoleFactory

        @Nonnull
        static OwnerRoleFactory emptyRoleFactory()
        Returns an empty implementation of factory. Useful for setting up a test environment.
        Returns:
        the empty implementation
        Since:
        3.2-ALPHA-1