|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectname.angoca.db2sa.Configurator
public final class Configurator
This class loads the configuration of the application. The implementation is
with a singleton. The name of the configuration file is in a Constant
(DB2SA_CONF_XML = db2sa_conf.xml)
This class defines all the default values in a set of constants; their names
are in the Constants interface.
Control Version
Method Summary | |
---|---|
static void |
destroyInstance()
Destroys the sole instance. |
static Configurator |
getInstance()
This is the singleton implementation. |
String |
getProperty(String key)
Retrieves a property from the load properties. |
void |
setProperty(String key,
String value)
Set a property after the properties file has been read. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Configurator getInstance()
public static void destroyInstance()
public String getProperty(String key)
key
- Name of the property to load.
public void setProperty(String key, String value)
key
- Name of the property.value
- Value of the property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |