@Typed @Vetoed public class ConfigImpl extends Object implements Config
| Modifier and Type | Field and Description |
|---|---|
protected List<ConfigSource> |
configSources |
protected Map<Type,Converter> |
converters |
protected Logger |
logger |
| Constructor and Description |
|---|
ConfigImpl() |
| Modifier and Type | Method and Description |
|---|---|
ConfigValueImpl<String> |
access(String key) |
void |
addConfigSources(List<ConfigSource> configSourcesToAdd) |
void |
addConverter(Converter<?> converter) |
<T> T |
convert(String value,
Class<T> asType) |
Iterable<ConfigSource> |
getConfigSources() |
Map<Type,Converter> |
getConverters() |
<T> T |
getOptionalValue(String propertyName,
Class<T> asType) |
Iterable<String> |
getPropertyNames() |
String |
getValue(String key) |
<T> T |
getValue(String propertyName,
Class<T> propertyType) |
protected List<ConfigSource> |
sortDescending(List<ConfigSource> configSources) |
protected Logger logger
protected List<ConfigSource> configSources
public <T> T getOptionalValue(String propertyName, Class<T> asType)
getOptionalValue in interface Configpublic ConfigValueImpl<String> access(String key)
public Iterable<String> getPropertyNames()
getPropertyNames in interface Configpublic Iterable<ConfigSource> getConfigSources()
getConfigSources in interface Configpublic void addConfigSources(List<ConfigSource> configSourcesToAdd)
public void addConverter(Converter<?> converter)
protected List<ConfigSource> sortDescending(List<ConfigSource> configSources)
Copyright © 2017. All rights reserved.