| 
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 | |
|---|---|
 List<Ehcache> | 
createCacheDecorators(Ehcache cache)
Creates decorated ehcaches for the cache, if any configured in ehcache.xml  | 
static CacheExceptionHandler | 
createCacheExceptionHandler(CacheConfiguration.CacheExceptionHandlerFactoryConfiguration factoryConfiguration,
                            ClassLoader loader)
Tries to create a CacheLoader from the configuration using the factory specified.  | 
 CacheManagerEventListener | 
createCacheManagerEventListener(CacheManager cacheManager)
Tries to load the class specified.  | 
 Map<String,CacheManagerPeerListener> | 
createCachePeerListeners()
Tries to load the class specified otherwise defaults to null  | 
 Map<String,CacheManagerPeerProvider> | 
createCachePeerProviders()
Tries to load the class specified otherwise defaults to null  | 
 Set | 
createCaches()
Creates unitialised caches for each cache configuration found  | 
 Ehcache | 
createDefaultCache()
 | 
static List<Ehcache> | 
createDefaultCacheDecorators(Ehcache cache,
                             CacheConfiguration defaultCacheConfiguration,
                             ClassLoader loader)
Creates default cache decorators specified in the default cache configuration if any  | 
 Configuration | 
getConfigurationBean()
 | 
 String | 
getDiskStorePath()
 | 
static Class<?> | 
getSearchAttributeType(SearchAttribute sa,
                       ClassLoader loader)
Deprecated. internal use only  | 
 int | 
numberOfCachesThatUseDiskStorage()
Calculates the number of caches in the configuration that are diskPersistent  | 
| 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 | 
|---|
public static CacheExceptionHandler createCacheExceptionHandler(CacheConfiguration.CacheExceptionHandlerFactoryConfiguration factoryConfiguration,
                                                                ClassLoader loader)
                                                         throws CacheException
CacheExceptionpublic Map<String,CacheManagerPeerProvider> createCachePeerProviders()
public Map<String,CacheManagerPeerListener> createCachePeerListeners()
public final CacheManagerEventListener createCacheManagerEventListener(CacheManager cacheManager)
                                                                throws CacheException
cacheManager - 
CacheExceptionpublic final String getDiskStorePath()
public final Ehcache createDefaultCache()
                                 throws CacheException
CacheException - if there is no default cachepublic final Set createCaches()
public final int numberOfCachesThatUseDiskStorage()
public List<Ehcache> createCacheDecorators(Ehcache cache)
cache - the cache
public static List<Ehcache> createDefaultCacheDecorators(Ehcache cache,
                                                         CacheConfiguration defaultCacheConfiguration,
                                                         ClassLoader loader)
cache - the underlying cache that will be decorateddefaultCacheConfiguration - default cache configurationloader - 
public static Class<?> getSearchAttributeType(SearchAttribute sa,
                                              ClassLoader loader)
sa - search attribute
public final Configuration getConfigurationBean()
  | 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||