Package io.smallrye.config
Class MapBackedConfigValueConfigSource
- java.lang.Object
-
- io.smallrye.config.common.AbstractConfigSource
-
- io.smallrye.config.MapBackedConfigValueConfigSource
-
- All Implemented Interfaces:
ConfigValueConfigSource,Serializable,org.eclipse.microprofile.config.spi.ConfigSource
- Direct Known Subclasses:
ConfigValuePropertiesConfigSource
@Deprecated(forRemoval=true) public abstract class MapBackedConfigValueConfigSource extends AbstractConfigSource implements ConfigValueConfigSource
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap)Deprecated, for removal: This API element is subject to removal in a future version.MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, boolean copy)Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance.MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, int defaultOrdinal)Deprecated, for removal: This API element is subject to removal in a future version.MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, int defaultOrdinal, boolean copy)Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConfigValuegetConfigValue(String propertyName)Deprecated, for removal: This API element is subject to removal in a future version.Return theConfigValuefor the specified property in this configuration source.Map<String,ConfigValue>getConfigValueProperties()Deprecated, for removal: This API element is subject to removal in a future version.Return the properties in this configuration source as a Map of String andConfigValue.Set<String>getPropertyNames()Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class io.smallrye.config.common.AbstractConfigSource
getName, getOrdinal, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
getName, getOrdinal
-
Methods inherited from interface io.smallrye.config.ConfigValueConfigSource
getProperties, getValue
-
-
-
-
Constructor Detail
-
MapBackedConfigValueConfigSource
public MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap)
Deprecated, for removal: This API element is subject to removal in a future version.
-
MapBackedConfigValueConfigSource
public MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, boolean copy)
Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance. The config source will use a default ordinal of100and will use a copy of the given map ifcopyistrue.- Parameters:
name- the config source namepropertyMap- the map to usecopy-trueto copy the given map,falseotherwise
-
MapBackedConfigValueConfigSource
public MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, int defaultOrdinal)
Deprecated, for removal: This API element is subject to removal in a future version.
-
MapBackedConfigValueConfigSource
public MapBackedConfigValueConfigSource(String name, Map<String,ConfigValue> propertyMap, int defaultOrdinal, boolean copy)
Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance. The config source will use the given default ordinal, and will use a copy of the given map ifcopyistrue.- Parameters:
name- the config source namepropertyMap- the map to usedefaultOrdinal- the default ordinal to use if one is not given in the mapcopy-trueto copy the given map,falseotherwise
-
-
Method Detail
-
getPropertyNames
public Set<String> getPropertyNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPropertyNamesin interfaceorg.eclipse.microprofile.config.spi.ConfigSource
-
getConfigValue
public ConfigValue getConfigValue(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConfigValueConfigSourceReturn theConfigValuefor the specified property in this configuration source.- Specified by:
getConfigValuein interfaceConfigValueConfigSource- Parameters:
propertyName- the property name- Returns:
- the ConfigValue, or
nullif the property is not present
-
getConfigValueProperties
public Map<String,ConfigValue> getConfigValueProperties()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConfigValueConfigSourceReturn the properties in this configuration source as a Map of String andConfigValue.- Specified by:
getConfigValuePropertiesin interfaceConfigValueConfigSource- Returns:
- a map containing properties of this configuration source
-
-