de.miethxml.toolkit.conf
Class ConfigManager

java.lang.Object
  extended byde.miethxml.toolkit.conf.ConfigManager

public class ConfigManager
extends java.lang.Object

Author:
Simon Mieth

Field Summary
static java.lang.String DEFAULT_CONFIGNAME
           
 
Method Summary
 void addConfigListener(ConfigListener l)
           
static ConfigManager getInstance()
           
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultvalue)
           
 boolean hasProperty(java.lang.String key)
           
 void removeConfigListener(ConfigListener l)
           
 void setConfigFile(java.lang.String file)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void storeConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIGNAME

public static java.lang.String DEFAULT_CONFIGNAME
Method Detail

storeConfiguration

public void storeConfiguration()

getInstance

public static ConfigManager getInstance()

getProperty

public java.lang.String getProperty(java.lang.String key)

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultvalue)

hasProperty

public boolean hasProperty(java.lang.String key)

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)

addConfigListener

public void addConfigListener(ConfigListener l)

removeConfigListener

public void removeConfigListener(ConfigListener l)

getProperties

public java.util.Properties getProperties()

setConfigFile

public void setConfigFile(java.lang.String file)