Package org.apache.jackrabbit.commons
Class JndiRepositoryFactory
- java.lang.Object
- 
- org.apache.jackrabbit.commons.JndiRepositoryFactory
 
- 
- All Implemented Interfaces:
- RepositoryFactory
 - Direct Known Subclasses:
- GenericRepositoryFactory
 
 public class JndiRepositoryFactory extends Object implements RepositoryFactory JNDI-based JCR repository factory. This factory looks upRepositoryinstances from JNDI directories based on the following parameters:- org.apache.jackrabbit.repository.jndi.name
- The value of this parameter is used as a JNDI name for looking up the repository.
- org.apache.jackrabbit.repository.uri
- If the URI scheme is "jndi", then the remainder of the URI is used as a JNDI name for looking up the repository.
 All the other repository parameters are passed as the environment of the initial JNDI context.Clients should normally only use this class through the Java Service Provider mechanism. See the getRepository utility methods in JcrUtilsfor an easy way to do that.- Since:
- Apache Jackrabbit 2.0
 
- 
- 
Constructor SummaryConstructors Constructor Description JndiRepositoryFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositorygetRepository(Map parameters)
 
- 
- 
- 
Field Detail- 
JNDI_NAMEpublic static final String JNDI_NAME The JNDI name parameter name.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getRepositorypublic Repository getRepository(Map parameters) throws RepositoryException - Specified by:
- getRepositoryin interface- RepositoryFactory
- Throws:
- RepositoryException
 
 
- 
 
-