public class RepositoryFactoryImpl extends Object implements 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 |
---|---|
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 Repository getRepository(Map parameters) throws 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 RepositoryFactory
RepositoryException
RepositoryFactory.getRepository(java.util.Map)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.