Package org.apache.jackrabbit.spi2jcr
Class Spi2jcrRepositoryServiceFactory
- java.lang.Object
-
- org.apache.jackrabbit.spi2jcr.Spi2jcrRepositoryServiceFactory
-
- All Implemented Interfaces:
RepositoryServiceFactory
public class Spi2jcrRepositoryServiceFactory extends Object implements RepositoryServiceFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_BATCH_READ_CONFIGOptional batch read configuration parameter.static StringPARAM_ITEMINFO_CACHE_SIZEOptional configuration parameter: It's value determines the size of theItemInfoCachecache.static StringPARAM_REPOSITORYMandatory repository parameter: expects value to be an instance ofRepository.
-
Constructor Summary
Constructors Constructor Description Spi2jcrRepositoryServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryServicecreateRepositoryService(Map<?,?> parameters)Create a newRepositoryService.
-
-
-
Field Detail
-
PARAM_REPOSITORY
public static final String PARAM_REPOSITORY
Mandatory repository parameter: expects value to be an instance ofRepository.- See Also:
- Constant Field Values
-
PARAM_BATCH_READ_CONFIG
public static final String PARAM_BATCH_READ_CONFIG
Optional batch read configuration parameter. If it is present the value is expected to be an instance ofBatchReadConfig.- See Also:
- Constant Field Values
-
PARAM_ITEMINFO_CACHE_SIZE
public static final String PARAM_ITEMINFO_CACHE_SIZE
Optional configuration parameter: It's value determines the size of theItemInfoCachecache. Defaults toItemInfoCacheImpl.DEFAULT_CACHE_SIZE.- See Also:
- Constant Field Values
-
-
Method Detail
-
createRepositoryService
public RepositoryService createRepositoryService(Map<?,?> parameters) throws RepositoryException
Description copied from interface:RepositoryServiceFactoryCreate a newRepositoryService. If the factory does not understand the passedparametersit must returnnull.- Specified by:
createRepositoryServicein interfaceRepositoryServiceFactory- Parameters:
parameters- implementation specific set of parameters- Returns:
- a fresh
RepositoryServiceinstance ornull. - Throws:
RepositoryException- If there was an error creating theRepositoryServiceinstance
-
-