|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectuk.ac.roe.antigen.utils.Config
Make Properties globally available by wrapping a Properties with a static class
| Constructor Summary | |
Config()
|
|
| Method Summary | |
static java.lang.String |
getProperty(java.lang.String name)
Returns null if the property is the empty string |
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defolt)
Returns the property from the props file, or the default if the property is null or the empty string |
static void |
load(java.lang.String path)
|
static void |
setProperty(java.lang.String key,
java.lang.String value)
Add in a property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Config()
| Method Detail |
public static void load(java.lang.String path)
public static java.lang.String getProperty(java.lang.String name)
name - property key
public static java.lang.String getProperty(java.lang.String name,
java.lang.String defolt)
name - property keydefolt - default value
public static void setProperty(java.lang.String key,
java.lang.String value)
key - keyvalue - value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||