|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basecmp.core.util.BCConfiguration
Purely static service-Class, providing any configuration-values from xml-config. The loaderclass for the xml-config supports the usage of embedded variablesnames in config-parameters in the jtlp-way, meaning you may use a values with a references to another variable, e.g var1=def, var2 = abc${var1}, resulting in a value for var2=abcdef.
Additionally the method getMap() returns a Map-Instance containing all config-keys with their corresponding config-values. This method may be handy to support the use of JSTL in JSPs.
fully refactored on 24.07.2006 by Wolfgang Schröder.
| Field Summary | |
static boolean |
IS_LIVE_SERVER
|
static java.lang.String |
PAGE_DELIVERY_USECASE
|
static java.lang.String |
WEBAPP_NAME
|
| Method Summary | |
static java.util.Map |
getMap()
Delivers the internally used map-instance with all config-values. |
static java.lang.String |
getProperty(java.lang.String key)
Returns for any given key the configured value, which was defined in any of the configured config-files. |
static void |
load()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean IS_LIVE_SERVER
public static final java.lang.String PAGE_DELIVERY_USECASE
public static final java.lang.String WEBAPP_NAME
| Method Detail |
public static java.util.Map getMap()
public static java.lang.String getProperty(java.lang.String key)
Notes:
key - String-Name of the configured key
java.lang.IllegalArgumentException - If the given key is null or empty.public static void load()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||