Class ConfigManager


  • public class ConfigManager
    extends java.lang.Object
    This class is the public interface to accessing and working with the configuration. This class is responsible for reading the configuration from the file into the Config object, and providing access to the Config object. This class is a singleton. Note: This class previously handled ConfigListeners but they were removed because they were only implemented once and weren't actually used.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Config getConfig()
      Returns the manager's Config.
      void init()
      Create a new Config, belonging to the manager.
      void loadConfig​(java.io.BufferedReader p_reader)
      Loads in a Config from file, using a BufferedReader.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigManager

        public ConfigManager()
    • Method Detail

      • init

        public void init()
        Create a new Config, belonging to the manager.
      • getConfig

        public Config getConfig()
        Returns the manager's Config.
        Returns:
        The manager's Config if initialized, otherwise null.
      • loadConfig

        public void loadConfig​(java.io.BufferedReader p_reader)
        Loads in a Config from file, using a BufferedReader.
        Parameters:
        p_reader - BufferedReader opened on a file.