|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.config.Configuration
public final class Configuration
A bean, used by BeanUtils, to set configuration from an XML configuration file.
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. |
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. |
java.util.Map |
getCacheConfigurations()
Gets a Map of cache configurations, keyed by name. |
java.util.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. |
java.lang.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(java.lang.String configurationSource)
Sets the configuration source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration()
ConfigurationFactory
, and can be also sued programmatically.
If you are using it programmtically you need to call the relevant add and setter methods in this class to
populate everything.
Method Detail |
---|
public final void addDiskStore(DiskStoreConfiguration diskStoreConfigurationParameter) throws ObjectExistsException
ObjectExistsException
public final void addCacheManagerEventListenerFactory(FactoryConfiguration cacheManagerEventListenerFactoryConfiguration) throws ObjectExistsException
ObjectExistsException
public final void addCacheManagerPeerProviderFactory(FactoryConfiguration factory)
public final void addCacheManagerPeerListenerFactory(FactoryConfiguration factory)
public final void addDefaultCache(CacheConfiguration defaultCacheConfiguration) throws ObjectExistsException
ObjectExistsException
public final void addCache(CacheConfiguration cacheConfiguration) throws ObjectExistsException
ObjectExistsException
public final java.util.Set getCacheConfigurationsKeySet()
public final CacheConfiguration getDefaultCacheConfiguration()
public final void setDefaultCacheConfiguration(CacheConfiguration defaultCacheConfiguration)
defaultCacheConfiguration
- public final DiskStoreConfiguration getDiskStoreConfiguration()
public final FactoryConfiguration getCacheManagerPeerProviderFactoryConfiguration()
public final FactoryConfiguration getCacheManagerPeerListenerFactoryConfiguration()
public final FactoryConfiguration getCacheManagerEventListenerFactoryConfiguration()
public final java.util.Map getCacheConfigurations()
public final void setSource(java.lang.String configurationSource)
configurationSource
- an informative description of the source, preferably
including the resource name and location.public final java.lang.String getConfigurationSource()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |