@Typed @Vetoed public class ConfigImpl extends Object implements org.eclipse.microprofile.config.Config, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected List<org.eclipse.microprofile.config.spi.ConfigSource> |
configSources |
protected Map<Type,org.eclipse.microprofile.config.spi.Converter> |
converters |
protected Map<Type,org.eclipse.microprofile.config.spi.Converter> |
implicitConverters |
protected Logger |
logger |
| Constructor and Description |
|---|
ConfigImpl() |
| Modifier and Type | Method and Description |
|---|---|
ConfigValueImpl<String> |
access(String key) |
void |
addConfigSources(List<org.eclipse.microprofile.config.spi.ConfigSource> configSourcesToAdd) |
void |
addConverter(org.eclipse.microprofile.config.spi.Converter<?> converter) |
void |
addPrioritisedConverter(org.apache.geronimo.config.DefaultConfigBuilder.PrioritisedConverter prioritisedConverter) |
void |
close() |
<T> T |
convert(String value,
Class<T> asType) |
Iterable<org.eclipse.microprofile.config.spi.ConfigSource> |
getConfigSources() |
Map<Type,org.eclipse.microprofile.config.spi.Converter> |
getConverters() |
long |
getLastChanged() |
<T> Optional<T> |
getOptionalValue(String propertyName,
Class<T> asType) |
Iterable<String> |
getPropertyNames() |
String |
getValue(String key) |
<T> T |
getValue(String propertyName,
Class<T> propertyType) |
void |
onAttributeChange(Set<String> attributesChanged) |
protected Logger logger
protected List<org.eclipse.microprofile.config.spi.ConfigSource> configSources
public <T> Optional<T> getOptionalValue(String propertyName, Class<T> asType)
getOptionalValue in interface org.eclipse.microprofile.config.Configpublic <T> T getValue(String propertyName, Class<T> propertyType)
getValue in interface org.eclipse.microprofile.config.Configpublic ConfigValueImpl<String> access(String key)
public Iterable<String> getPropertyNames()
getPropertyNames in interface org.eclipse.microprofile.config.Configpublic Iterable<org.eclipse.microprofile.config.spi.ConfigSource> getConfigSources()
getConfigSources in interface org.eclipse.microprofile.config.Configpublic void addConfigSources(List<org.eclipse.microprofile.config.spi.ConfigSource> configSourcesToAdd)
public void addConverter(org.eclipse.microprofile.config.spi.Converter<?> converter)
public void addPrioritisedConverter(org.apache.geronimo.config.DefaultConfigBuilder.PrioritisedConverter prioritisedConverter)
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic long getLastChanged()
Copyright © 2019 The Apache Software Foundation. All rights reserved.