Package org.wildstang.framework.config
Class ConfigManager
- java.lang.Object
-
- org.wildstang.framework.config.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.
-
-
-
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.
-
-