org.gersteinlab.tyna.webapp.config
Class Config

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byorg.gersteinlab.tyna.webapp.config.Config
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Config
extends java.util.Properties

	This class provides methods for accessing the configuration settings
	stored in the default property file. Each line of the file corresponds
	to a configuration, in the format =.
	

Version:
1.0 (October 1, 2005) Change History: 1.0 - Initial version
Author:
Kevin Yuk-Lap Yip
See Also:
Serialized Form

Field Summary
protected static Config config
          The singleton object.
protected static java.lang.String configFile
          Name of the configuration file.
 
Fields inherited from class java.util.Properties
defaults
 
Method Summary
static Config newInstance()
          Get an instance of the class.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

configFile

protected static final java.lang.String configFile
Name of the configuration file.

See Also:
Constant Field Values

config

protected static Config config
The singleton object.

Method Detail

newInstance

public static Config newInstance()
                          throws ConfigException
Get an instance of the class.

Throws:
ConfigException - If there is any problem in getting the new instance