net.sf.ehcache.config
public final class Configuration extends Object
Version: $Id: Configuration.java 52 2006-04-24 14:50:03Z gregluck $
Constructor Summary | |
---|---|
Configuration()
Empty constructor, which is used by ConfigurationFactory, and can be also sued programmatically.
|
Method Summary | |
---|---|
void | addCache(CacheConfiguration cacheConfiguration)
Allows BeanHandler to add Cache Configurations to the configuration. |
void | addCacheManagerEventListenerFactory(FactoryConfiguration cacheManagerEventListenerFactoryConfiguration)
Allows BeanHandler to add the CacheManagerEventListener to the configuration. |
void | addCacheManagerPeerListenerFactory(FactoryConfiguration factory)
Adds a CachePeerProviderFactoryConfiguration.
cachePeerListenerFactory class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=localhost, port=5000" |
void | addCacheManagerPeerProviderFactory(FactoryConfiguration factory)
Adds a CachePeerProviderFactoryConfiguration. |
void | addDefaultCache(CacheConfiguration defaultCacheConfiguration)
Allows BeanHandler to add a default configuration to the configuration. |
void | addDiskStore(DiskStoreConfiguration diskStoreConfigurationParameter)
Allows BeanHandler to add disk store location to the configuration. |
Map | getCacheConfigurations()
Gets a Map of cache configurations, keyed by name. |
Set | getCacheConfigurationsKeySet()
Gets a Map of cacheConfigurations. |
FactoryConfiguration | getCacheManagerEventListenerFactoryConfiguration()
Gets the CacheManagerEventListener factory configuration. |
FactoryConfiguration | getCacheManagerPeerListenerFactoryConfiguration()
Gets the CacheManagerPeerListener factory configuration. |
FactoryConfiguration | getCacheManagerPeerProviderFactoryConfiguration()
Gets the CacheManagerPeerProvider factory configuration. |
String | getConfigurationSource()
Gets a description of the source from which this configuration was created. |
CacheConfiguration | getDefaultCacheConfiguration() |
DiskStoreConfiguration | getDiskStoreConfiguration()
Gets the disk store configuration. |
void | setDefaultCacheConfiguration(CacheConfiguration defaultCacheConfiguration) |
void | setSource(String configurationSource)
Sets the configuration source. |
Returns: the configuration's default cache configuration
Parameters: defaultCacheConfiguration
Parameters: configurationSource an informative description of the source, preferably including the resource name and location.