org.infinispan.config
Class AbstractConfigurationBean

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

public abstract class AbstractConfigurationBean
extends Object
implements CloneableConfigurationComponent, JAXBUnmarshallable

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  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 static TypedProperties toTypedProperties(Properties p)
          Converts a given Properties instance to an instance of TypedProperties
protected static TypedProperties toTypedProperties(String s)
           
protected  String uc(String s)
          Safely converts a String to upper case.
 void willUnmarshall(Object parent)
          Indicates that this element is about to be unmarshalled from the XML source that was processed.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 static TypedProperties toTypedProperties(Properties p)
Converts a given Properties instance to an instance of TypedProperties

Parameters:
p - properties to convert
Returns:
TypedProperties instance

toTypedProperties

protected static 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

willUnmarshall

public void willUnmarshall(Object parent)
Description copied from interface: JAXBUnmarshallable
Indicates that this element is about to be unmarshalled from the XML source that was processed.

Specified by:
willUnmarshall in interface JAXBUnmarshallable
Parameters:
parent - parent component

-->

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