|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.monkeycoder.monkeynetwork.GlobalConfig
public class GlobalConfig
Global Configuration Singleton. For all practical purposes this is a singleton wrapper providing simplified access to a Properties object.
| Method Summary | |
|---|---|
static java.lang.String |
getConfig(java.lang.String inKey)
Returns the requested config value as a String. |
static boolean |
getConfigAsBoolean(java.lang.String inKey)
Returns the requested config value as a boolean. |
static double |
getConfigAsDouble(java.lang.String inKey)
Returns the requested config value as a double. |
static float |
getConfigAsFloat(java.lang.String inKey)
Returns the requested config value as a float. |
static int |
getConfigAsInt(java.lang.String inKey)
Returns the requested config value as an int. |
static long |
getConfigAsLong(java.lang.String inKey)
Returns the requested config value as a long. |
static void |
printAllConfigs()
Outputs to the console all known configuration keys with their current values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String getConfig(java.lang.String inKey)
inKey - The key for which the data is to be returned.
public static int getConfigAsInt(java.lang.String inKey)
inKey - The key for which the data is to be returned.
public static long getConfigAsLong(java.lang.String inKey)
inKey - The key for which the data is to be returned.
public static float getConfigAsFloat(java.lang.String inKey)
inKey - The key for which the data is to be returned.
public static double getConfigAsDouble(java.lang.String inKey)
inKey - The key for which the data is to be returned.
public static boolean getConfigAsBoolean(java.lang.String inKey)
inKey - The key for which the data is to be returned.
public static void printAllConfigs()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||