|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
public class Jcr2spiRepositoryFactory
This implementation of RepositoryFactory is capable of returning the various
SPI implementations of the Apache Jackrabbit project:
| Nested Class Summary | |
|---|---|
static class |
Jcr2spiRepositoryFactory.RepositoryConfigImpl
|
| Field Summary | |
|---|---|
static CacheBehaviour |
DEFAULT_CACHE_BEHAVIOR
Default value for PARAM_CACHE_BEHAVIOR |
static int |
DEFAULT_ITEM_CACHE_SIZE
Default value for PARAM_ITEM_CACHE_SIZE |
static int |
DEFAULT_POLL_TIME_OUT
Default value for PARAM_POLL_TIME_OUT |
static java.lang.String |
PARAM_CACHE_BEHAVIOR
Optional configuration parameter for RepositoryConfig.getCacheBehaviour(). |
static java.lang.String |
PARAM_ITEM_CACHE_SIZE
Optional configuration parameter for the RepositoryConfig.getItemCacheSize(). |
static java.lang.String |
PARAM_LOG_WRITER_PROVIDER
LogWriterProvider configuration parameter: If the parameter is present the RepositoryService defined by the specified
RepositoryConfig will be wrapped by calling
SpiLoggerFactory.create(org.apache.jackrabbit.spi.RepositoryService, org.apache.jackrabbit.spi.commons.logging.LogWriterProvider)
if the parameter value is an instance of LogWriterProvider or
SpiLoggerFactory.create(org.apache.jackrabbit.spi.RepositoryService)
otherwise. |
static java.lang.String |
PARAM_POLL_TIME_OUT
Optional configuration parameter for the RepositoryConfig.getPollTimeout(). |
static java.lang.String |
PARAM_REPOSITORY_CONFIG
This parameter contains the RepositoryConfig instance. |
static java.lang.String |
PARAM_REPOSITORY_SERVICE_FACTORY
This parameter determines the RepositoryServiceFactory to create the
RepositoryService. |
| Constructor Summary | |
|---|---|
Jcr2spiRepositoryFactory()
|
|
| Method Summary | |
|---|---|
Repository |
getRepository(java.util.Map parameters)
Creates a SPI based Repository instance based on the
parameters passed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAM_REPOSITORY_SERVICE_FACTORY
RepositoryServiceFactory to create the
RepositoryService. This is either an instance of RepositoryServiceFactory
or a fully quallyfied class name of a RepositoryServiceFactory
having a no argument constructor.
public static final java.lang.String PARAM_REPOSITORY_CONFIG
RepositoryConfig instance.
public static final java.lang.String PARAM_CACHE_BEHAVIOR
RepositoryConfig.getCacheBehaviour(). This
must be either CacheBehaviour.INVALIDATE or CacheBehaviour.OBSERVATION
or one of the strings "invalidate" or "observation".
public static final CacheBehaviour DEFAULT_CACHE_BEHAVIOR
PARAM_CACHE_BEHAVIOR
public static final java.lang.String PARAM_ITEM_CACHE_SIZE
RepositoryConfig.getItemCacheSize(). This
must be either an Integer or a String which parses into an integer.
public static final int DEFAULT_ITEM_CACHE_SIZE
PARAM_ITEM_CACHE_SIZE
public static final java.lang.String PARAM_POLL_TIME_OUT
RepositoryConfig.getPollTimeout(). This
must be either an Integer or a String which parses into an integer.
public static final int DEFAULT_POLL_TIME_OUT
PARAM_POLL_TIME_OUT
public static final java.lang.String PARAM_LOG_WRITER_PROVIDER
RepositoryService defined by the specified
RepositoryConfig will be wrapped by calling
SpiLoggerFactory.create(org.apache.jackrabbit.spi.RepositoryService, org.apache.jackrabbit.spi.commons.logging.LogWriterProvider)
if the parameter value is an instance of LogWriterProvider or
SpiLoggerFactory.create(org.apache.jackrabbit.spi.RepositoryService)
otherwise.
SpiLoggerFactory.create(org.apache.jackrabbit.spi.RepositoryService),
SpiLoggerFactory.create(org.apache.jackrabbit.spi.RepositoryService, org.apache.jackrabbit.spi.commons.logging.LogWriterProvider),
Constant Field Values| Constructor Detail |
|---|
public Jcr2spiRepositoryFactory()
| Method Detail |
|---|
public Repository getRepository(java.util.Map parameters)
throws RepositoryException
Creates a SPI based Repository instance based on the
parameters passed.
If the PARAM_REPOSITORY_SERVICE_FACTORY parameter is set,
the specified RepositoryServiceFactory is used to create the
RepositoryService instance. All parameters are passed to
RepositoryServiceFactory.createRepositoryService(Map).
If the PARAM_REPOSITORY_CONFIG parameter is set, the
specified RepositoryConfig instance is used to create the
repository.
If both parameters are set, the latter takes precedence and the former is ignores.
The known SPI implementations and its RepositoryServiceFactorys are:
Spi2davRepositoryServiceFactorySpi2davexRepositoryServiceFactorySpi2jcrRepositoryServiceFactoryparameters map contains an
PARAM_LOG_WRITER_PROVIDER entry the
RepositoryService obtained
from the configuration is wrapped by a SPI logger. See the
SpiLoggerFactory
for details.
getRepository in interface RepositoryFactoryRepositoryExceptionRepositoryFactory.getRepository(java.util.Map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||