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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    load(String file)
    Reads file content and converts it to configuration values.

    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, debugEvent, isDebugEnabled, isTraceEnabled, trace, trace

    Methods inherited from class com.tenio.common.logger.AbstractLogger

    buildgen, error, error, error, info, info, info, info, info, info, info, info, isErrorEnabled, isInfoEnabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CoreConfiguration

      public CoreConfiguration()
  • Method Details

    • load

      public void load(String file) throws Exception
      Reads file content and converts it to configuration values.
      Parameters:
      file - The String name of the configuration file and this file needs to be put in same folder with the application
      Throws:
      Exception - some exceptions, which can be occurred when reading or parsing the file