orca.cod.plugins
Class ConfigurationPropertiesMapper

java.lang.Object
  extended by orca.cod.plugins.ConfigurationPropertiesMapper
All Implemented Interfaces:
IInitialize

public class ConfigurationPropertiesMapper
extends java.lang.Object
implements IInitialize


Field Summary
protected  java.lang.String configMapUrl
          Location of the configuration map
static java.lang.String DefaultConfigMapUrl
          Location of the default configuration map
protected  java.util.Hashtable javaToConfig
          Map: java -> configuration properties
protected  LoggingTool logger
          The logger
 
Constructor Summary
ConfigurationPropertiesMapper()
           
ConfigurationPropertiesMapper(java.lang.String configMapUrl)
           
 
Method Summary
protected  void createConfigMapping()
          Creates the configuration map
protected  java.lang.String getClassField(java.lang.String str)
          Obtains the value of the specified static string field
 void initialize()
          Initializes the object.
 java.util.Properties javaToConfiguration(java.util.Properties p)
           
protected  Mapping readConfigMapping()
          Reads the configuration map
 void setConfigMapUrl(java.lang.String url)
          Sets the configuration map location
 void setLogger(LoggingTool logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DefaultConfigMapUrl

public static final java.lang.String DefaultConfigMapUrl
Location of the default configuration map

See Also:
Constant Field Values

configMapUrl

protected java.lang.String configMapUrl
Location of the configuration map


logger

protected LoggingTool logger
The logger


javaToConfig

protected java.util.Hashtable javaToConfig
Map: java -> configuration properties

Constructor Detail

ConfigurationPropertiesMapper

public ConfigurationPropertiesMapper()

ConfigurationPropertiesMapper

public ConfigurationPropertiesMapper(java.lang.String configMapUrl)
Method Detail

initialize

public void initialize()
                throws java.lang.Exception
Description copied from interface: IInitialize
Initializes the object.

Specified by:
initialize in interface IInitialize
Throws:
java.lang.Exception

javaToConfiguration

public java.util.Properties javaToConfiguration(java.util.Properties p)

getClassField

protected java.lang.String getClassField(java.lang.String str)
Obtains the value of the specified static string field

Parameters:
str - Fully qualified field name (package.class.field)
Returns:
The value of the vield

createConfigMapping

protected void createConfigMapping()
                            throws java.lang.Exception
Creates the configuration map

Throws:
java.lang.Exception

readConfigMapping

protected Mapping readConfigMapping()
                             throws java.lang.Exception
Reads the configuration map

Returns:
Throws:
java.lang.Exception

setConfigMapUrl

public void setConfigMapUrl(java.lang.String url)
Sets the configuration map location

Parameters:
url -

setLogger

public void setLogger(LoggingTool logger)


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.