|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.config.ConfigurationHelper
public final class ConfigurationHelper
The configuration for ehcache.
This class can be populated through:ConfigurationFactory
or
Constructor Summary | |
---|---|
ConfigurationHelper(CacheManager cacheManager,
Configuration configuration)
Only Constructor |
Method Summary | |
---|---|
BootstrapCacheLoader |
createBootstrapCacheLoader(CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration factoryConfiguration)
Tries to load a BootstrapCacheLoader from the class specified. |
CacheExceptionHandler |
createCacheExceptionHandler(CacheConfiguration.CacheExceptionHandlerFactoryConfiguration factoryConfiguration)
Tries to create a CacheLoader from the configuration using the factory specified. |
CacheManagerEventListener |
createCacheManagerEventListener()
Tries to load the class specified. |
java.util.Map<java.lang.String,CacheManagerPeerListener> |
createCachePeerListeners()
Tries to load the class specified otherwise defaults to null |
java.util.Map<java.lang.String,CacheManagerPeerProvider> |
createCachePeerProviders()
Tries to load the class specified otherwise defaults to null |
java.util.Set |
createCaches()
Creates unitialised caches for each cache configuration found |
Ehcache |
createDefaultCache()
|
Configuration |
getConfigurationBean()
|
java.lang.String |
getDiskStorePath()
|
java.lang.Integer |
numberOfCachesThatAreDiskPersistent()
Calculates the number of caches in the configuration that are diskPersistent |
java.lang.Integer |
numberOfCachesThatOverflowToDisk()
Calculates the number of caches in the configuration that overflow to disk |
protected static void |
registerCacheExtensions(CacheConfiguration cacheConfiguration,
Ehcache cache)
A factory method to register cache extensions |
protected static void |
registerCacheListeners(CacheConfiguration cacheConfiguration,
RegisteredEventListeners registeredEventListeners)
A factory method to create a RegisteredEventListeners |
protected static void |
registerCacheLoaders(CacheConfiguration cacheConfiguration,
Ehcache cache)
A factory method to register cache Loaders |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationHelper(CacheManager cacheManager, Configuration configuration)
cacheManager
- configuration
- Method Detail |
---|
protected static void registerCacheListeners(CacheConfiguration cacheConfiguration, RegisteredEventListeners registeredEventListeners)
protected static void registerCacheExtensions(CacheConfiguration cacheConfiguration, Ehcache cache)
cacheConfiguration
- the cache configurationcache
- the cacheprotected static void registerCacheLoaders(CacheConfiguration cacheConfiguration, Ehcache cache)
cacheConfiguration
- the cache configurationcache
- the cachepublic final BootstrapCacheLoader createBootstrapCacheLoader(CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration factoryConfiguration) throws CacheException
CacheException
public final CacheExceptionHandler createCacheExceptionHandler(CacheConfiguration.CacheExceptionHandlerFactoryConfiguration factoryConfiguration) throws CacheException
CacheException
public java.util.Map<java.lang.String,CacheManagerPeerProvider> createCachePeerProviders()
public java.util.Map<java.lang.String,CacheManagerPeerListener> createCachePeerListeners()
public final CacheManagerEventListener createCacheManagerEventListener() throws CacheException
CacheException
public final java.lang.String getDiskStorePath()
public final Ehcache createDefaultCache() throws CacheException
CacheException
- if there is no default cachepublic final java.util.Set createCaches()
public final java.lang.Integer numberOfCachesThatOverflowToDisk()
public final java.lang.Integer numberOfCachesThatAreDiskPersistent()
public final Configuration getConfigurationBean()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |