org.glite.data.common.helpers
Class ContextConfigurationBean

java.lang.Object
  extended byorg.glite.data.common.helpers.ContextConfigurationBean
All Implemented Interfaces:
ConfigurationBean

public abstract class ContextConfigurationBean
extends java.lang.Object
implements ConfigurationBean

Base class for a configuration bean that uses the bean's own factory to set the configuration properties. This class should be subclassed with the relevant setter and getter methods for each config item. As such it is only suitable for smallish configuration sets. After initialisation, any call to the relevant setter method will show up live in the configuration.

There should only ever be one instance of this bean per application.

The bean actively reflects the name of its getter method per call to get(java.lang.String) rather than caching, so is not designed for heavy use.


Constructor Summary
ContextConfigurationBean()
           
 
Method Summary
 java.lang.String get(java.lang.String key)
          Get the configuration item for the given key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextConfigurationBean

public ContextConfigurationBean()
Method Detail

get

public java.lang.String get(java.lang.String key)
Get the configuration item for the given key

Specified by:
get in interface ConfigurationBean
Parameters:
key -
Returns:
the value