Class JNDIRepositoryFactory
java.lang.Object
org.apache.jackrabbit.commons.repository.JNDIRepositoryFactory
- All Implemented Interfaces:
RepositoryFactory
Factory that looks up a repository from JNDI.
- Since:
- 1.4
-
Constructor Summary
ConstructorsConstructorDescriptionJNDIRepositoryFactory(Context context, String name) Creates a factory for looking up a repository from JNDI. -
Method Summary
Modifier and TypeMethodDescriptionLooks up and returns the configured repository.
-
Constructor Details
-
JNDIRepositoryFactory
Creates a factory for looking up a repository from JNDI.- Parameters:
context- JNDI contextname- JNDI name of the repository
-
-
Method Details
-
getRepository
Looks up and returns the configured repository.- Specified by:
getRepositoryin interfaceRepositoryFactory- Returns:
- repository instance
- Throws:
RepositoryException- if the repository can not be found
-