public class ConfigManager
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Retrieves the requested value from the resource files as a boolean.
|
static int |
getInt(java.lang.String key,
int defaultValue)
Retrieves the requested value from the resource files as an int.
|
static java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Retrieves the requested value from the resource files as a String.
|
static boolean |
isEnabled(java.lang.String key)
Returns false unless the requested key is defined as true
|
static void |
setProperty(java.lang.String name,
java.lang.Object value)
Allow the setting of a property incase you don't want to use what's in the property file
|
public static void setProperty(java.lang.String name,
java.lang.Object value)
name - value - public static boolean getBoolean(java.lang.String key,
boolean defaultValue)
key - The key to retrieve the value of.defaultValue - The value to return if the there is an error getting the key's valuejava.lang.NullPointerException - If the requested key is nullpublic static int getInt(java.lang.String key,
int defaultValue)
key - The key to retrieve the value of.defaultValue - The value to return if the there is an error getting the key's valuejava.lang.NullPointerException - If the requested key is nullpublic static java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
key - The key to retrieve the value of.defaultValue - The value to return if the there is an error getting the key's valuejava.lang.NullPointerException - If the requested key is nullpublic static boolean isEnabled(java.lang.String key)