public interface ContainerConfiguration
Modifier and Type | Method and Description |
---|---|
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<String> |
getKeys()
Get the list of the keys contained in the configuration.
|
List<String> |
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.
|
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 testedboolean 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<String> getList(String key)
long getLong(String key)
key
- long getLong(String key, long defaultValue)
key
- defaultValue
- String[] getStringArray(String key)
key
- boolean isDevelopmentMode()
Properties toProperties()
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.