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
ThisRepositoryFactoryimplementations 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 StringPARAM_REPOSITORY_CONFIGWhen this key parameter is present, this factory delegates toorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactorystatic StringPARAM_REPOSITORY_SERVICE_FACTORYWhen 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 RepositorygetRepository(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_FACTORYorPARAM_REPOSITORY_CONFIGis present, this factory delegates toorg.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory. Otherwise it delegates toorg.apache.jackrabbit.core.RepositoryFactoryImpl.- Specified by:
getRepositoryin interfaceRepositoryFactory- Throws:
RepositoryException- See Also:
RepositoryFactory.getRepository(java.util.Map)
-
-