public final class ConfigLoader extends Object
Modifier and Type | Method and Description |
---|---|
static Config |
getConfig()
Returns the parsed configuration instance.
|
static boolean |
isConfigLoaded()
Returns whether the configuration has been loaded already.
|
static void |
loadConfig()
Loads and parses the contents of the configuration file into a Config
instance.
|
static void |
loadConfig(String configPath)
Loads and parses the contents of the configuration file into a Config
instance.
|
public static void loadConfig(String configPath) throws ConfigurationException
getConfig()
method.configPath
- path to the configuration fileConfigurationException
public static void loadConfig() throws ConfigurationException
getConfig()
method.
The configuration file is expected to be found at the standard location.ConfigurationException
public static Config getConfig()
loadConfig(java.lang.String)
prior to calling this method!public static boolean isConfigLoaded()
loadConfig()
has been called.Copyright © 2013. All Rights Reserved.