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
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    load(String file)
    Read file content and convert 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, trace, trace

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

    buildgen, error, error, info, info, info, info, info, info, info, info

    Methods inherited from class java.lang.Object

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

    • CoreConfiguration

      public CoreConfiguration()
      The constructor.
  • Method Details

    • load

      public void load(String file) throws Exception
      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