public abstract class MapBackedConfigValueConfigSource extends AbstractConfigSource implements ConfigValueConfigSource
| Constructor and Description |
|---|
MapBackedConfigValueConfigSource(String name,
Map<String,ConfigValue> propertyMap) |
MapBackedConfigValueConfigSource(String name,
Map<String,ConfigValue> propertyMap,
boolean copy)
Construct a new instance.
|
MapBackedConfigValueConfigSource(String name,
Map<String,ConfigValue> propertyMap,
int defaultOrdinal) |
MapBackedConfigValueConfigSource(String name,
Map<String,ConfigValue> propertyMap,
int defaultOrdinal,
boolean copy)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ConfigValue |
getConfigValue(String propertyName)
Return the
ConfigValue for the specified property in this configuration source. |
Map<String,ConfigValue> |
getConfigValueProperties()
Return the properties in this configuration source as a Map of String and
ConfigValue. |
Set<String> |
getPropertyNames() |
getName, getOrdinal, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperties, getValuepublic MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap)
public MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, boolean copy)
100 and
will use a copy of the given map if copy is true.name - the config source namepropertyMap - the map to usecopy - true to copy the given map, false otherwisepublic MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, int defaultOrdinal)
public MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, int defaultOrdinal, boolean copy)
copy is true.name - the config source namepropertyMap - the map to usedefaultOrdinal - the default ordinal to use if one is not given in the mapcopy - true to copy the given map, false otherwisepublic Set<String> getPropertyNames()
getPropertyNames in interface org.eclipse.microprofile.config.spi.ConfigSourcepublic ConfigValue getConfigValue(String propertyName)
ConfigValueConfigSourceConfigValue for the specified property in this configuration source.getConfigValue in interface ConfigValueConfigSourcepropertyName - the property namenull if the property is not presentpublic Map<String,ConfigValue> getConfigValueProperties()
ConfigValueConfigSourceConfigValue.getConfigValueProperties in interface ConfigValueConfigSourceCopyright © 2018–2020. All rights reserved.