Package com.tenio.core.configuration
Class CoreConfiguration
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.common.configuration.CommonConfiguration
com.tenio.core.configuration.CoreConfiguration
- All Implemented Interfaces:
com.tenio.common.configuration.Configuration
public abstract class CoreConfiguration
extends com.tenio.common.configuration.CommonConfiguration
This server needs some basic configuration to start running. The
configuration file can be defined as an XML file. See an example in
configuration.example.xml. You can also extend this file to create your own
configuration values.
-
Constructor Summary
-
Method Summary
Methods inherited from class com.tenio.common.configuration.CommonConfiguration
clear, extend, get, getBoolean, getFloat, getInt, getString, isDefined, push, toString
Methods inherited from class com.tenio.common.logger.SystemLogger
debug, trace, trace
Methods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, info, info, info, info, info, info, info, info
-
Constructor Details
-
CoreConfiguration
public CoreConfiguration()The constructor.
-
-
Method Details
-
load
Read file content and convert it to configuration values.- Parameters:
file
- The name of your configuration file and this file needs to be put in same folder with your application- Throws:
Exception
- some exceptions, which can be occurred in reading or parsing the file
-