|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.component.Configuration
public class Configuration
This class handles the access to the configuration.
| Method Summary | |
|---|---|
static Configuration |
create(java.lang.String id)
|
java.lang.String |
demansch(java.lang.String arg)
Inverse function to mansch |
static Configuration |
get()
|
static Configuration |
get(java.lang.String id)
|
java.lang.String |
getFileName()
|
java.lang.String |
getId()
|
java.lang.String |
getMangledProperty(java.lang.String name)
|
java.util.Properties |
getProperties()
|
java.lang.String |
getProperty(java.lang.String name)
|
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defValue)
Returns the value of the spaceified configuration key or the defValue, if the configuration entry is not found. |
void |
init(java.lang.String filename)
|
static void |
loadTopLevel(java.lang.String filename)
|
java.lang.String |
mansch(java.lang.String arg)
This method makes a string unreadable. |
void |
reload()
|
void |
setMangledProperty(java.lang.String name,
java.lang.String value)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
|
void |
setSystemProps()
|
void |
store()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Configuration create(java.lang.String id)
public static Configuration get(java.lang.String id)
public static Configuration get()
public void init(java.lang.String filename)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public void reload()
throws java.io.IOException
java.io.IOException
public static void loadTopLevel(java.lang.String filename)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundExceptionpublic void setSystemProps()
public java.lang.String getFileName()
public java.lang.String getId()
public java.lang.String getProperty(java.lang.String name)
public java.lang.String getProperty(java.lang.String name,
java.lang.String defValue)
defValue, if the configuration entry is not found.
name - the configuration entry keydefValue - the default value
defValue, if the configuration entry is not
found.
public void setProperty(java.lang.String name,
java.lang.String value)
public java.lang.String getMangledProperty(java.lang.String name)
public void setMangledProperty(java.lang.String name,
java.lang.String value)
public void store()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String mansch(java.lang.String arg)
public java.lang.String demansch(java.lang.String arg)
public java.util.Properties getProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||