Package org.apache.jackrabbit.client
Class RepositoryFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.client.RepositoryFactoryImpl
-
- All Implemented Interfaces:
RepositoryFactory
public class RepositoryFactoryImpl extends Object implements RepositoryFactory
ThisRepositoryFactory
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 thegetRepository(Map)
method determine which secondary RepositoryFactory this factory delegates to.
-
-
Field Summary
Fields Modifier and Type Field Description static String
PARAM_REPOSITORY_CONFIG
When this key parameter is present, this factory delegates toorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
static String
PARAM_REPOSITORY_SERVICE_FACTORY
When this key parameter is present, this factory delegates toorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
-
Constructor Summary
Constructors Constructor Description RepositoryFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Repository
getRepository(Map parameters)
Creates a JCR repository from the givenparameters
.
-
-
-
Field Detail
-
PARAM_REPOSITORY_SERVICE_FACTORY
public static final String PARAM_REPOSITORY_SERVICE_FACTORY
When this key parameter is present, this factory delegates toorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
- See Also:
- Constant Field Values
-
PARAM_REPOSITORY_CONFIG
public static final String PARAM_REPOSITORY_CONFIG
When this key parameter is present, this factory delegates toorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRepository
public Repository getRepository(Map parameters) throws RepositoryException
Creates a JCR repository from the givenparameters
. If eitherPARAM_REPOSITORY_SERVICE_FACTORY
orPARAM_REPOSITORY_CONFIG
is present, this factory delegates toorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory
. Otherwise it delegates toorg.apache.jackrabbit.core.RepositoryFactoryImpl
.- Specified by:
getRepository
in interfaceRepositoryFactory
- Throws:
RepositoryException
- See Also:
RepositoryFactory.getRepository(java.util.Map)
-
-