com.calfater.mailcarbon.util
Class Config

java.lang.Object
  extended by com.calfater.mailcarbon.util.Config

public class Config
extends java.lang.Object

The Class Config.

Author:
sebastien borie

Nested Class Summary
 class Config.Key
          The Class Key.
 
Method Summary
static Config getInstance()
          Gets the single instance of Config.
 java.lang.String getProperty(java.lang.String keyName)
          Gets the property.
 java.lang.String getProperty(java.lang.String keyName, java.lang.String defaultValue)
          Gets the property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final Config getInstance()
Gets the single instance of Config.

Returns:
single instance of Config

getProperty

public java.lang.String getProperty(java.lang.String keyName)
Gets the property.

Parameters:
keyName - the key name
Returns:
the property

getProperty

public java.lang.String getProperty(java.lang.String keyName,
                                    java.lang.String defaultValue)
Gets the property.

Parameters:
keyName - the key name
defaultValue - the default value if the property key is not found
Returns:
the property value or the default if not found


Copyright © 2010. All Rights Reserved.