public class JndiRepositoryFactory extends Object implements RepositoryFactory
Repository
instances from JNDI directories based on the following parameters:
org.apache.jackrabbit.repository.jndi.name
org.apache.jackrabbit.repository.uri
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.
Modifier and Type | Field and Description |
---|---|
static String |
JNDI_NAME
The JNDI name parameter name.
|
Constructor and Description |
---|
JndiRepositoryFactory() |
Modifier and Type | Method and Description |
---|---|
Repository |
getRepository(Map parameters) |
public static final String JNDI_NAME
public Repository getRepository(Map parameters) throws RepositoryException
getRepository
in interface RepositoryFactory
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.