public class RepositoryFactoryImpl extends Object implements javax.jcr.RepositoryFactory
RepositoryFactory
implementations is capable of creating any
repository which is covered by the Apache Jackrabbit project. It does so by
delegating back to secondary RepositoryFactory implementations. The
parameters passed to the getRepository(Map)
method determine which
secondary RepositoryFactory this factory delegates to.Modifier and Type | Field and Description |
---|---|
static String |
PARAM_REPOSITORY_CONFIG
When this key parameter is present, this factory delegates to
org.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory |
static String |
PARAM_REPOSITORY_SERVICE_FACTORY
When this key parameter is present, this factory delegates to
org.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory |
Constructor and Description |
---|
RepositoryFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
javax.jcr.Repository |
getRepository(Map parameters)
Creates a JCR repository from the given
parameters . |
public static final String PARAM_REPOSITORY_SERVICE_FACTORY
org.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
public static final String PARAM_REPOSITORY_CONFIG
org.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
public javax.jcr.Repository getRepository(Map parameters) throws javax.jcr.RepositoryException
parameters
.
If either PARAM_REPOSITORY_SERVICE_FACTORY
or
PARAM_REPOSITORY_CONFIG
is present, this factory delegates
to org.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
.
Otherwise it delegates to
org.apache.jackrabbit.core.RepositoryFactoryImpl
.getRepository
in interface javax.jcr.RepositoryFactory
javax.jcr.RepositoryException
RepositoryFactory.getRepository(java.util.Map)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.