Class SingletonRepositoryFactory
java.lang.Object
org.apache.jackrabbit.commons.repository.SingletonRepositoryFactory
- All Implemented Interfaces:
RepositoryFactory
Repository factory that always returns the same configured repository.
-
Constructor Summary
ConstructorsConstructorDescriptionSingletonRepositoryFactory(Repository repository) Creates a repository factory that always returns the given repository. -
Method Summary
Modifier and TypeMethodDescriptionReturns the configured repository instance.
-
Constructor Details
-
SingletonRepositoryFactory
Creates a repository factory that always returns the given repository.- Parameters:
repository- singleton repository instance.
-
-
Method Details
-
getRepository
Returns the configured repository instance.- Specified by:
getRepositoryin interfaceRepositoryFactory- Returns:
- singleton repository instance
-