Class SingletonRepositoryFactory

  • All Implemented Interfaces:
    RepositoryFactory

    public class SingletonRepositoryFactory
    extends Object
    implements RepositoryFactory
    Repository factory that always returns the same configured repository.
    • Constructor Detail

      • SingletonRepositoryFactory

        public SingletonRepositoryFactory​(Repository repository)
        Creates a repository factory that always returns the given repository.
        Parameters:
        repository - singleton repository instance.