org.glite.data.common.helpers
Class FileConfigurationBean

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

public class FileConfigurationBean
extends java.lang.Object
implements ConfigurationBean

A configuration bean that uses a Java properties file as its source, which is expected to be in the application's classpath. The name configfile to use is a bean property (configFilename). The class will only read its configuration once, upon creation. There should only ever be one instance of this bean per application.


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

Constructor Detail

FileConfigurationBean

public FileConfigurationBean()
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 - the config key to retrieve
Returns:
the config value

getConfigFilename

public java.lang.String getConfigFilename()

setConfigFilename

public void setConfigFilename(java.lang.String configFilename)