Package org.apache.jackrabbit.jcr2spi
Class Jcr2spiRepositoryFactory.RepositoryConfigImpl
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.Jcr2spiRepositoryFactory.RepositoryConfigImpl
-
- All Implemented Interfaces:
RepositoryConfig
- Enclosing class:
- Jcr2spiRepositoryFactory
public static class Jcr2spiRepositoryFactory.RepositoryConfigImpl extends Object implements RepositoryConfig
-
-
Constructor Summary
Constructors Constructor Description RepositoryConfigImpl(RepositoryServiceFactory serviceFactory, Map<?,?> parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheBehaviour
getCacheBehaviour()
<T> T
getConfiguration(String name, T defaultValue)
int
getItemCacheSize()
int
getPollTimeout()
Specifies an interval used for polling theRepositoryService
for changes.RepositoryService
getRepositoryService()
-
-
-
Constructor Detail
-
RepositoryConfigImpl
public RepositoryConfigImpl(RepositoryServiceFactory serviceFactory, Map<?,?> parameters) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
getCacheBehaviour
public CacheBehaviour getCacheBehaviour()
- Specified by:
getCacheBehaviour
in interfaceRepositoryConfig
-
getItemCacheSize
public int getItemCacheSize()
- Specified by:
getItemCacheSize
in interfaceRepositoryConfig
-
getPollTimeout
public int getPollTimeout()
Description copied from interface:RepositoryConfig
Specifies an interval used for polling theRepositoryService
for changes.- Specified by:
getPollTimeout
in interfaceRepositoryConfig
- Returns:
- the poll timeout in milliseconds.
-
getConfiguration
public <T> T getConfiguration(String name, T defaultValue)
- Specified by:
getConfiguration
in interfaceRepositoryConfig
-
getRepositoryService
public RepositoryService getRepositoryService() throws RepositoryException
- Specified by:
getRepositoryService
in interfaceRepositoryConfig
- Throws:
RepositoryException
-
-