org.eodisp.util.configuration
Class BasicSystemPropertyMapper

java.lang.Object
  extended by org.eodisp.util.configuration.BasicSystemPropertyMapper
All Implemented Interfaces:
SystemPropertyMapper

public class BasicSystemPropertyMapper
extends java.lang.Object
implements SystemPropertyMapper

A basic implementation of the system property mapper interface. Returns the key of the configuration entry prefixed with the given prefix in the constructor as the new key for the system property. The default prefix org.eodisp. is used if null is given in the constructor.

Version:
$Id: BasicCommandlineMapper.java 2094 2006-05-15 13:28:33Z ibirrer $
Author:
ibirrer

Field Summary
static SystemPropertyMapper INSTANCE
           
 
Fields inherited from interface org.eodisp.util.configuration.SystemPropertyMapper
NULL_SYSTEM_PROPERTY_MAPPER
 
Constructor Summary
BasicSystemPropertyMapper(java.lang.String prefix)
           
 
Method Summary
 java.lang.String mapEntry(Configuration.Entry entry)
          Returns the key in the system property (System.getProperty(String)) that is mapped to the given entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static SystemPropertyMapper INSTANCE
Constructor Detail

BasicSystemPropertyMapper

public BasicSystemPropertyMapper(java.lang.String prefix)
Method Detail

mapEntry

public java.lang.String mapEntry(Configuration.Entry entry)
Description copied from interface: SystemPropertyMapper
Returns the key in the system property (System.getProperty(String)) that is mapped to the given entry. A return value of null means that no system property is mapped to the given entry.

Specified by:
mapEntry in interface SystemPropertyMapper
Parameters:
entry - the entry that shall be mapped to a system property
Returns:
the key of the system property mapped to the given configuration entry or null if the given configuration entry shall not be mapped to a system property.