|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContainerConfiguration
Container Configuration Retrieve basic data types from the container configuration(s). This is a subset of Commons Configuration functionality.
Method Summary | |
---|---|
boolean |
containsKey(String key)
Check if the configuration contains the specified key. |
boolean |
getBoolean(String key)
Get a boolean associated with the given configuration key. |
boolean |
getBoolean(String key,
boolean defaultValue)
Get a boolean associated with the given configuration key. |
double |
getDouble(String key)
Get a double associated with the given configuration key. |
double |
getDouble(String key,
double defaultValue)
Get a Double associated with the given configuration key. |
float |
getFloat(String key)
Get a float associated with the given configuration key. |
float |
getFloat(String key,
float defaultValue)
Get a Float associated with the given configuration key. |
int |
getInt(String key)
Get a int associated with the given configuration key. |
int |
getInt(String key,
int defaultValue)
Get a int associated with the given configuration key. |
Iterator |
getKeys()
Get the list of the keys contained in the configuration. |
List |
getList(String key)
Get a List of strings associated with the given configuration key. |
long |
getLong(String key)
Get a long associated with the given configuration key. |
long |
getLong(String key,
long defaultValue)
Get a long associated with the given configuration key. |
String |
getString(String key)
Get a string associated with the given configuration key. |
String |
getString(String key,
String defaultValue)
Get a string associated with the given configuration key. |
String[] |
getStringArray(String key)
Get an array of strings associated with the given configuration key. |
boolean |
isDevelopmentMode()
Checks if the container is running under development mode |
boolean |
isEmpty()
Check if the configuration is empty. |
Properties |
toProperties()
Convert a ContainerConfiguration class into a Properties class. |
Method Detail |
---|
boolean isEmpty()
true
if the configuration contains no property,
false
otherwise.boolean containsKey(String key)
key
- the key whose presence in this configuration is to be tested
boolean getBoolean(String key)
key
-
boolean getBoolean(String key, boolean defaultValue)
key
- defaultValue
-
String getString(String key)
key
-
String getString(String key, String defaultValue)
key
- defaultValue
-
double getDouble(String key)
key
-
double getDouble(String key, double defaultValue)
key
- defaultValue
-
float getFloat(String key)
key
-
float getFloat(String key, float defaultValue)
key
- defaultValue
-
int getInt(String key)
key
-
int getInt(String key, int defaultValue)
key
- defaultValue
-
List getList(String key)
key
-
long getLong(String key)
key
-
long getLong(String key, long defaultValue)
key
- defaultValue
-
String[] getStringArray(String key)
key
-
Iterator getKeys()
boolean isDevelopmentMode()
Properties toProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |