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 java.lang.Object
- implements RepositoryFactory
JNDI-based JCR repository factory. This factory looks up Repository
instances 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
JcrUtils for an easy way to do that.
- Since:
- Apache Jackrabbit 2.0
|
Field Summary |
static java.lang.String |
JNDI_NAME
The JNDI name parameter name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_NAME
public static final java.lang.String JNDI_NAME
- The JNDI name parameter name.
- See Also:
- Constant Field Values
JndiRepositoryFactory
public JndiRepositoryFactory()
getRepository
public Repository getRepository(java.util.Map parameters)
throws RepositoryException
- Specified by:
getRepository in interface RepositoryFactory
- Throws:
RepositoryException
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.