Class SingletonRepositoryFactory
- java.lang.Object
-
- org.apache.jackrabbit.commons.repository.SingletonRepositoryFactory
-
- All Implemented Interfaces:
RepositoryFactory
public class SingletonRepositoryFactory extends java.lang.Object implements RepositoryFactory
Repository factory that always returns the same configured repository.
-
-
Constructor Summary
Constructors Constructor Description SingletonRepositoryFactory(javax.jcr.Repository repository)
Creates a repository factory that always returns the given repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.Repository
getRepository()
Returns the configured repository instance.
-
-
-
Method Detail
-
getRepository
public javax.jcr.Repository getRepository()
Returns the configured repository instance.- Specified by:
getRepository
in interfaceRepositoryFactory
- Returns:
- singleton repository instance
-
-