org.jboss.cache.config
Class ConfigurationComponent

java.lang.Object
  extended by org.jboss.cache.config.ConfigurationComponent
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent
Direct Known Subclasses:
BuddyReplicationConfig, CacheLoaderConfig, Configuration, CustomInterceptorConfig, EvictionAlgorithmConfigBase, EvictionConfig, EvictionPolicyConfigBase, EvictionRegionConfig, NullEvictionAlgorithmConfig, NullEvictionPolicyConfig, PluggableConfigurationComponent, RuntimeConfig

public abstract class ConfigurationComponent
extends Object
implements CloneableConfigurationComponent

Base superclass of Cache configuration classes that expose some properties that can be changed after the cache is started.

Version:
$Revision: 7168 $
Author:
Brian Stansberry
See Also:
testImmutability(String), Serialized Form

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
protected ConfigurationComponent()
           
 
Method Summary
protected  void addChildConfig(ConfigurationComponent child)
           
protected  void addChildConfigs(Collection<? extends ConfigurationComponent> toAdd)
           
 CloneableConfigurationComponent clone()
           
 void passCacheToChildConfig(ConfigurationComponent child)
           
protected  void removeChildConfig(ConfigurationComponent child)
           
protected  void removeChildConfigs(Collection<? extends ConfigurationComponent> toRemove)
           
protected  void replaceChildConfig(ConfigurationComponent oldConfig, ConfigurationComponent newConfig)
           
protected  void replaceChildConfigs(Collection<? extends ConfigurationComponent> oldConfigs, Collection<? extends ConfigurationComponent> newConfigs)
           
 void setCache(CacheSPI cache)
           
protected  void testImmutability(String fieldName)
          Checks field modifications via setters
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected transient org.apache.commons.logging.Log log
Constructor Detail

ConfigurationComponent

protected ConfigurationComponent()
Method Detail

passCacheToChildConfig

public void passCacheToChildConfig(ConfigurationComponent child)

addChildConfig

protected void addChildConfig(ConfigurationComponent child)

addChildConfigs

protected void addChildConfigs(Collection<? extends ConfigurationComponent> toAdd)

removeChildConfig

protected void removeChildConfig(ConfigurationComponent child)

removeChildConfigs

protected void removeChildConfigs(Collection<? extends ConfigurationComponent> toRemove)

replaceChildConfig

protected void replaceChildConfig(ConfigurationComponent oldConfig,
                                  ConfigurationComponent newConfig)

replaceChildConfigs

protected void replaceChildConfigs(Collection<? extends ConfigurationComponent> oldConfigs,
                                   Collection<? extends ConfigurationComponent> newConfigs)

testImmutability

protected void testImmutability(String fieldName)
Checks field modifications via setters

Parameters:
fieldName -

setCache

public void setCache(CacheSPI cache)

clone

public CloneableConfigurationComponent clone()
                                      throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class Object
Throws:
CloneNotSupportedException


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.