Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.metacosm.ui.controlpanel
Class Configuration  view Configuration download Configuration.java

java.lang.Object
  extended byorg.metacosm.ui.controlpanel.Configuration

public class Configuration
extends java.lang.Object

Provides all the configuration of the game, by reading the configuration file.
All the public static final String are used to name parameters.
It's also a Singleton OOD pattern.


Field Summary
static java.lang.String ADMINCON_PINGDELAY
           
static java.lang.String ADMINCONNECTION_DEBUG_INFO
           
private static java.lang.String CONFIG_FILE
          Contains the name of the configuration file.
private static Configuration configuration
          The instance of the class.
private static java.util.Properties data
          Used to contain configuration in memory, and to save and load it.
static java.lang.String EVENTLOG_PANEL_MAXLENGTH
           
static java.lang.String EVENTLOG_PANEL_PURGELENGTH
           
static java.lang.String JVM_CLASSPATH
           
static java.lang.String JVM_COMMANDLINE
           
static java.lang.String SERVER_CLASS
           
static java.lang.String THREADS_DEBUG_INFO
           
 
Constructor Summary
private Configuration()
          The constructor is private because of singleton pattern.
Reads the configuration file and exits in case of exception.
 
Method Summary
static Configuration getInstance()
           
 java.lang.String getString(java.lang.String varName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADMINCON_PINGDELAY

public static final java.lang.String ADMINCON_PINGDELAY
See Also:
Constant Field Values

JVM_COMMANDLINE

public static final java.lang.String JVM_COMMANDLINE
See Also:
Constant Field Values

JVM_CLASSPATH

public static final java.lang.String JVM_CLASSPATH
See Also:
Constant Field Values

SERVER_CLASS

public static final java.lang.String SERVER_CLASS
See Also:
Constant Field Values

THREADS_DEBUG_INFO

public static final java.lang.String THREADS_DEBUG_INFO
See Also:
Constant Field Values

ADMINCONNECTION_DEBUG_INFO

public static final java.lang.String ADMINCONNECTION_DEBUG_INFO
See Also:
Constant Field Values

EVENTLOG_PANEL_MAXLENGTH

public static final java.lang.String EVENTLOG_PANEL_MAXLENGTH
See Also:
Constant Field Values

EVENTLOG_PANEL_PURGELENGTH

public static final java.lang.String EVENTLOG_PANEL_PURGELENGTH
See Also:
Constant Field Values

CONFIG_FILE

private static final java.lang.String CONFIG_FILE
Contains the name of the configuration file.

See Also:
Constant Field Values

data

private static java.util.Properties data
Used to contain configuration in memory, and to save and load it.


configuration

private static Configuration configuration
The instance of the class.

Constructor Detail

Configuration

private Configuration()
The constructor is private because of singleton pattern.
Reads the configuration file and exits in case of exception.

Method Detail

getInstance

public static Configuration getInstance()

getString

public java.lang.String getString(java.lang.String varName)