|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.naftulin.configmgr.ConfigurationUtility
public class ConfigurationUtility
Constructor Summary | |
---|---|
ConfigurationUtility()
|
Method Summary | |
---|---|
static java.lang.Boolean |
getBoolean(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static java.lang.Character |
getCharacter(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static ConfigurationManagement |
getConfigurationManagement()
Returns configuration management engine object. |
static ConfigurationManager |
getConfigurationManager()
Returns configuration manager. |
static java.lang.Double |
getDouble(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static java.lang.Float |
getFloat(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static java.lang.Integer |
getInteger(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static java.lang.Long |
getLong(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static java.lang.Object |
getObject(java.lang.String configurationKey)
Looks up configuration by configuration key, and returns value stored under that configuration. |
static java.lang.Object |
getObject(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static java.lang.Short |
getShort(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static java.lang.String |
getString(java.lang.String configurationKey,
java.lang.String propertyKey)
Looks up configuration by configuration key. |
static void |
reload()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationUtility()
Method Detail |
---|
public static java.lang.Boolean getBoolean(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key.public static java.lang.Character getCharacter(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key, or if value stored is cannot be parsed to
specified type.public static java.lang.Double getDouble(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key, or if value stored is cannot be parsed to
specified type.public static java.lang.Float getFloat(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key, or if value stored is cannot be parsed to
specified type.public static java.lang.Integer getInteger(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key, or if value stored is cannot be parsed to
specified type.public static java.lang.Long getLong(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key, or if value stored is cannot be parsed to
specified type.public static java.lang.Short getShort(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key, or if value stored is cannot be parsed to
specified type.public static java.lang.String getString(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key.public static java.lang.Object getObject(java.lang.String configurationKey, java.lang.String propertyKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found; or if configuration is found, but is not of type Map, or if Map found
does not contain value under property key.public static java.lang.Object getObject(java.lang.String configurationKey)
configurationKey
- propertyKey
-
java.lang.IllegalArgumentException
- if configuration based on configuration key is not
found.public static ConfigurationManagement getConfigurationManagement()
ConfigurationManagerRuntimeException
- if an error occurred while creating a configuration
management object.public static void reload()
public static ConfigurationManager getConfigurationManager()
ConfigurationManagerRuntimeException
- if an error occurs while creating a configuration
manager.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |