|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.jaspira.plugin.ConfigMgr
public final class ConfigMgr
The configuration manager stores a number of configuration values that can be used to customize the application and its plugins. This class is a singleton.
| Field Summary | |
|---|---|
static java.lang.String |
STD_CONFIG_FILE
Standard Config.properties file in $rootdir/$appname |
| Method Summary | |
|---|---|
boolean |
evaluate(java.lang.String cond)
Evaluates a configuration expression. |
java.lang.String |
getConfigResourceName()
Gets the config property resource name. |
static ConfigMgr |
getInstance()
Gets the singleton instance of this class. |
java.lang.String |
getValue(java.lang.String key)
Gets the configuration value for the given key. |
void |
initialize()
Initializes the configuration manager. |
boolean |
isDefined(java.lang.String key)
checks if the given key defined. |
void |
readPropertyResource(java.lang.String propertyResourceName,
boolean mandatory)
Reads the specified property file. |
void |
setConfigResourceName(java.lang.String configResourceName)
Sets the config property resource name. |
void |
setValue(java.lang.String key,
java.lang.String value)
Sets a configuration value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STD_CONFIG_FILE
| Method Detail |
|---|
public static ConfigMgr getInstance()
public java.lang.String getConfigResourceName()
public void setConfigResourceName(java.lang.String configResourceName)
public void initialize()
public void readPropertyResource(java.lang.String propertyResourceName,
boolean mandatory)
propertyResourceName - Full path name of the property filepublic boolean evaluate(java.lang.String cond)
cond - The condition expression may contain:public boolean isDefined(java.lang.String key)
public java.lang.String getValue(java.lang.String key)
public void setValue(java.lang.String key,
java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||