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 String
PARAM_BATCH_READ_CONFIG
Optional batch read configuration parameter.static String
PARAM_ITEMINFO_CACHE_SIZE
Optional configuration parameter: It's value determines the size of theItemInfoCache
cache.static String
PARAM_REPOSITORY
Mandatory 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 RepositoryService
createRepositoryService(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 theItemInfoCache
cache. Defaults toItemInfoCacheImpl.DEFAULT_CACHE_SIZE
.- See Also:
- Constant Field Values
-
-
Method Detail
-
createRepositoryService
public RepositoryService createRepositoryService(Map<?,?> parameters) throws RepositoryException
Description copied from interface:RepositoryServiceFactory
Create a newRepositoryService
. If the factory does not understand the passedparameters
it must returnnull
.- Specified by:
createRepositoryService
in interfaceRepositoryServiceFactory
- Parameters:
parameters
- implementation specific set of parameters- Returns:
- a fresh
RepositoryService
instance ornull
. - Throws:
RepositoryException
- If there was an error creating theRepositoryService
instance
-
-