|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.listener.AppConfig
This class holds configuration information. It is a simple implementation that is the default for this listener if a custom class is not specified. Note that this does NOT support multiple elements with the same name, nor does it support anything but a flat config file format!
Field Summary | |
private static java.util.HashMap |
configMap
The configuration map. |
private javawebparts.core.org.apache.commons.digester.Digester |
digester
Reference to Digester populating this object. |
Constructor Summary | |
AppConfig()
|
Method Summary | |
static java.lang.String |
get(java.lang.String key)
The configuration map. |
void |
set(java.lang.String val)
Set an item in the configMap. |
void |
setDigester(javawebparts.core.org.apache.commons.digester.Digester inDigester)
This must be called before the object can be populated. |
java.lang.String |
toString()
Overriden toString method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static java.util.HashMap configMap
private javawebparts.core.org.apache.commons.digester.Digester digester
Constructor Detail |
public AppConfig()
Method Detail |
public void setDigester(javawebparts.core.org.apache.commons.digester.Digester inDigester)
inDigester
- Reference to Digester populating this object.public void set(java.lang.String val)
val
- The value to store.public static java.lang.String get(java.lang.String key)
key
- The key of the value to retrieve, null if not found.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |