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, instanciating it on first call.
|
public static String DEFAULT_CONFIG_NAME
public static Config getConfig(String name, IConfigFactory factory)
name - - the Config instance namefactory - - a custom factory implementationpublic static Config getConfig(String name)
name - - the Config namepublic static Config getConfig()
public static void clear()
Copyright © 2015 Irenical. All rights reserved.