public final class ConfigurationManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOGGER
Logger instance. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getInstance(Class<T> type)
Get configuration.
|
static <T> T |
getInstance(Class<T> type,
String name,
String environment)
Get configuration configured with given configuration name and for given environment.
|
static <T> T |
getInstanceForConf(Class<T> type,
String name)
Get configuration configured with given configuration name.
|
static <T> T |
getInstanceForEnv(Class<T> type,
String environment)
Get configuration configured for given environment.
|
static void |
tearDown()
Tear down
ConfigurationManager state. |
public static <T> T getInstance(Class<T> type)
type - type, requiredpublic static <T> T getInstanceForConf(Class<T> type, String name)
type - type, requiredname - configuration name, optionalpublic static <T> T getInstanceForEnv(Class<T> type, String environment)
type - type, requiredenvironment - environment, optionalpublic static <T> T getInstance(Class<T> type, String name, String environment)
type - type, requiredname - configuration name, optionalenvironment - environment, optionalpublic static void tearDown()
ConfigurationManager state.Copyright © 2013–2019 BB Corp. All rights reserved.