Class JNDIRepositoryFactory
- java.lang.Object
-
- org.apache.jackrabbit.commons.repository.JNDIRepositoryFactory
-
- All Implemented Interfaces:
RepositoryFactory
public class JNDIRepositoryFactory extends java.lang.Object implements RepositoryFactory
Factory that looks up a repository from JNDI.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description JNDIRepositoryFactory(javax.naming.Context context, java.lang.String name)
Creates a factory for looking up a repository from JNDI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Repository
getRepository()
Looks up and returns the configured repository.
-
-
-
Method Detail
-
getRepository
public Repository getRepository() throws RepositoryException
Looks up and returns the configured repository.- Specified by:
getRepository
in interfaceRepositoryFactory
- Returns:
- repository instance
- Throws:
RepositoryException
- if the repository can not be found
-
-