org.jboss.cache.config
Class ConfigurationComponent
java.lang.Object
org.jboss.cache.config.ConfigurationComponent
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- BuddyReplicationConfig, BuddyReplicationConfig.BuddyLocatorConfig, CacheLoaderConfig, CacheLoaderConfig.IndividualCacheLoaderConfig, CacheLoaderConfig.IndividualCacheLoaderConfig.SingletonStoreConfig, Configuration, EvictionConfig, EvictionPolicyConfigBase, EvictionRegionConfig, RuntimeConfig
public class ConfigurationComponent
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
Base superclass of Cache configuration classes that expose some properties
that can be changed after the cache is started.
- Version:
- $Revision: 1.6 $
- Author:
- Brian Stansberry
- See Also:
testImmutability(String)
,
Serialized Form
Field Summary |
protected org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected transient org.apache.commons.logging.Log log
ConfigurationComponent
protected ConfigurationComponent()
passCacheToChildConfig
public void passCacheToChildConfig(ConfigurationComponent child)
addChildConfig
protected void addChildConfig(ConfigurationComponent child)
addChildConfigs
protected void addChildConfigs(java.util.Collection<? extends ConfigurationComponent> toAdd)
removeChildConfig
protected void removeChildConfig(ConfigurationComponent child)
removeChildConfigs
protected void removeChildConfigs(java.util.Collection<? extends ConfigurationComponent> toRemove)
replaceChildConfig
protected void replaceChildConfig(ConfigurationComponent oldConfig,
ConfigurationComponent newConfig)
replaceChildConfigs
protected void replaceChildConfigs(java.util.Collection<? extends ConfigurationComponent> oldConfigs,
java.util.Collection<? extends ConfigurationComponent> newConfigs)
testImmutability
protected void testImmutability(java.lang.String fieldName)
- Checks field modifications via setters
- Parameters:
fieldName
-
getTreeCache
protected CacheImpl getTreeCache()
setCacheImpl
public void setCacheImpl(CacheImpl cache)
- Sets a back-reference to the cache associated with this configuration
- Parameters:
cache
-
clone
public ConfigurationComponent clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
safeEquals
protected static boolean safeEquals(java.lang.Object a,
java.lang.Object b)
- Null-safe equality test.
FIXME this must be written elsewhere.