Package org.wildstang.framework.config
Class ConfigManager
java.lang.Object
org.wildstang.framework.config.ConfigManager
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the manager's Config.voidinit()Create a new Config, belonging to the manager.voidloadConfig(BufferedReader p_reader) Loads in a Config from file, using a BufferedReader.
-
Constructor Details
-
ConfigManager
public ConfigManager()
-
-
Method Details
-
init
public void init()Create a new Config, belonging to the manager. -
getConfig
Returns the manager's Config.- Returns:
- The manager's Config if initialized, otherwise null.
-
loadConfig
Loads in a Config from file, using a BufferedReader.- Parameters:
p_reader- BufferedReader opened on a file.
-