org.infinispan.config
Class AbstractConfigurationBean

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent
Direct Known Subclasses:
AbstractNamedCacheConfigurationBean, Configuration.QueryConfigurationBean, GlobalConfiguration, GlobalConfiguration.FactoryClassWithPropertiesType, GlobalConfiguration.GlobalJmxStatisticsType, GlobalConfiguration.SerializationType, GlobalConfiguration.ShutdownType, GlobalConfiguration.TransportType

public abstract class AbstractConfigurationBean
extends Object
implements CloneableConfigurationComponent

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

Since:
4.0
Author:
Brian Stansberry, Vladimir Blagojevic
See Also:
Serialized Form

Field Summary
protected static TypedProperties EMPTY_PROPERTIES
           
protected  Log log
           
protected  Set<String> overriddenConfigurationElements
           
 
Constructor Summary
protected AbstractConfigurationBean()
           
 
Method Summary
 CloneableConfigurationComponent clone()
           
protected abstract  boolean hasComponentStarted()
          Tests whether the component this configuration bean intents to configure has already started.
protected  void testImmutability(String fieldName)
          Checks field modifications via setters
protected  TypedProperties toTypedProperties(Properties p)
          Converts a given Properties instance to an instance of TypedProperties
protected  TypedProperties toTypedProperties(String s)
           
protected  String uc(String s)
          Safely converts a String to upper case.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_PROPERTIES

protected static final TypedProperties EMPTY_PROPERTIES

log

protected transient Log log

overriddenConfigurationElements

protected Set<String> overriddenConfigurationElements
Constructor Detail

AbstractConfigurationBean

protected AbstractConfigurationBean()
Method Detail

uc

protected String uc(String s)
Safely converts a String to upper case.

Parameters:
s - string to convert
Returns:
the string in upper case, or null if s is null.

toTypedProperties

protected TypedProperties toTypedProperties(Properties p)
Converts a given Properties instance to an instance of TypedProperties

Parameters:
p - properties to convert
Returns:
TypedProperties instance

toTypedProperties

protected TypedProperties toTypedProperties(String s)

hasComponentStarted

protected abstract boolean hasComponentStarted()
Tests whether the component this configuration bean intents to configure has already started.

Returns:
true if the component has started; false otherwise.

testImmutability

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

Parameters:
fieldName -

clone

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

Google Analytics

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