com.monkeycoder.monkeynetwork
Class GlobalConfig

java.lang.Object
  extended by com.monkeycoder.monkeynetwork.GlobalConfig

public class GlobalConfig
extends java.lang.Object

Global Configuration Singleton. For all practical purposes this is a singleton wrapper providing simplified access to a Properties object.

Author:
David Stephens

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

getConfig

public static java.lang.String getConfig(java.lang.String inKey)
Returns the requested config value as a String.

Parameters:
inKey - The key for which the data is to be returned.
Returns:
The config value as a String.

getConfigAsInt

public static int getConfigAsInt(java.lang.String inKey)
Returns the requested config value as an int.

Parameters:
inKey - The key for which the data is to be returned.
Returns:
The config value as an int.

getConfigAsLong

public static long getConfigAsLong(java.lang.String inKey)
Returns the requested config value as a long.

Parameters:
inKey - The key for which the data is to be returned.
Returns:
The config value as a long.

getConfigAsFloat

public static float getConfigAsFloat(java.lang.String inKey)
Returns the requested config value as a float.

Parameters:
inKey - The key for which the data is to be returned.
Returns:
The config value as a float.

getConfigAsDouble

public static double getConfigAsDouble(java.lang.String inKey)
Returns the requested config value as a double.

Parameters:
inKey - The key for which the data is to be returned.
Returns:
The config value as a double.

getConfigAsBoolean

public static boolean getConfigAsBoolean(java.lang.String inKey)
Returns the requested config value as a boolean.

Parameters:
inKey - The key for which the data is to be returned.
Returns:
The config value as a boolean.

printAllConfigs

public static void printAllConfigs()
Outputs to the console all known configuration keys with their current values.