public class ConfigFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONFIG_NAME |
| Constructor and Description |
|---|
ConfigFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Discards all Config instances
|
static Config |
getConfig()
Returns the default Config, same as getConfig(null)
|
static Config |
getConfig(String name)
Returns Config for given name, same as getConfig(name,null)
|
static Config |
getConfig(String name,
IConfigFactory factory)
Returns a Config instance, instantiating it on first call.
|
static ConfigContext |
getContext() |
static void |
setContext(ConfigContext context) |
static void |
setDefaultConfigFactory(IConfigFactory factory) |
public static String DEFAULT_CONFIG_NAME
public static Config getConfig()
public static Config getConfig(String name)
name - - the Config namepublic static Config getConfig(String name, IConfigFactory factory)
name - - the Config instance namefactory - - a custom factory implementationpublic static void setDefaultConfigFactory(IConfigFactory factory)
public static void setContext(ConfigContext context)
public static ConfigContext getContext()
public static void clear()
Copyright © 2017 Irenical. All rights reserved.