java.lang.Object
org.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.
|
Constructor Summary |
private |
Configuration()
The constructor is private because of singleton pattern.
Reads the configuration file and exits in case of exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
Configuration
private Configuration()
- The constructor is private because of singleton pattern.
Reads the configuration file and exits in case of exception.
getInstance
public static Configuration getInstance()
getString
public java.lang.String getString(java.lang.String varName)