Class ConfigManager

java.lang.Object
org.wildstang.framework.config.ConfigManager

public class ConfigManager extends 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 Details

    • ConfigManager

      public ConfigManager()
  • Method Details

    • 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(BufferedReader p_reader)
      Loads in a Config from file, using a BufferedReader.
      Parameters:
      p_reader - BufferedReader opened on a file.