public class SmallRyeConfig extends Object implements Config, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
SmallRyeConfig(List<ConfigSource> configSources,
Map<Type,Converter> converters) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
convert(String value,
Class<T> asType) |
Iterable<ConfigSource> |
getConfigSources() |
protected <T> Converter |
getConverter(Class<T> asType) |
<T> Optional<T> |
getOptionalValue(String name,
Class<T> aClass)
Return the resolved property value with the specified type for the
specified property name from the underlying
ConfigSources. |
Iterable<String> |
getPropertyNames()
Return a collection of property names.
|
<T> T |
getValue(String name,
Class<T> aClass)
Return the resolved property value with the specified type for the
specified property name from the underlying
ConfigSources. |
protected SmallRyeConfig(List<ConfigSource> configSources, Map<Type,Converter> converters)
public <T> T getValue(String name, Class<T> aClass)
ConfigConfigSources.
If this method gets used very often then consider to locally store the configured value.public <T> Optional<T> getOptionalValue(String name, Class<T> aClass)
ConfigConfigSources.
If this method is used very often then consider to locally store the configured value.getOptionalValue in interface ConfigT - The property typename - The configuration propertyName.aClass - The type into which the resolve property value should be convertedpublic Iterable<String> getPropertyNames()
ConfiggetPropertyNames in interface Configpublic Iterable<ConfigSource> getConfigSources()
getConfigSources in interface Configconfigsources sorted with descending ordinal and ConfigSource nameCopyright © 2019 JBoss by Red Hat. All rights reserved.