org.androidpn.server.util
Class ConfigManager

java.lang.Object
  extended by org.androidpn.server.util.ConfigManager

public class ConfigManager
extends java.lang.Object

This class is to manage the applicatin configruation.

Author:
Sehwan Noh (devnoh@gmail.com)

Method Summary
 org.apache.commons.configuration.Configuration getConfig()
          Returns the loaded configuration object.
static ConfigManager getInstance()
          Returns the singleton instance of ConfigManger.
 void loadConfig()
          Loads the default configuration file.
 void loadConfig(java.lang.String configFileName)
          Loads the specific configuration file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConfigManager getInstance()
Returns the singleton instance of ConfigManger.

Returns:
the instance

loadConfig

public void loadConfig()
Loads the default configuration file.


loadConfig

public void loadConfig(java.lang.String configFileName)
Loads the specific configuration file.

Parameters:
configFileName - the file name

getConfig

public org.apache.commons.configuration.Configuration getConfig()
Returns the loaded configuration object.

Returns:
the configuration