Package io.smallrye.config.common
Class MapBackedConfigSource
- java.lang.Object
-
- io.smallrye.config.common.AbstractConfigSource
-
- io.smallrye.config.common.MapBackedConfigSource
-
- All Implemented Interfaces:
Serializable,org.eclipse.microprofile.config.spi.ConfigSource
public abstract class MapBackedConfigSource extends AbstractConfigSource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapBackedConfigSource(String name, Map<String,String> propertyMap)Construct a new instance.MapBackedConfigSource(String name, Map<String,String> propertyMap, boolean copy)Construct a new instance.MapBackedConfigSource(String name, Map<String,String> propertyMap, int defaultOrdinal)Construct a new instance.MapBackedConfigSource(String name, Map<String,String> propertyMap, int defaultOrdinal, boolean copy)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getProperties()Set<String>getPropertyNames()StringgetValue(String propertyName)-
Methods inherited from class io.smallrye.config.common.AbstractConfigSource
getName, getOrdinal, toString
-
-
-
-
Constructor Detail
-
MapBackedConfigSource
public MapBackedConfigSource(String name, Map<String,String> propertyMap)
Construct a new instance. The config source will use a default ordinal of100and will use the given map as-is (not a copy of it).- Parameters:
name- the config source namepropertyMap- the map to use
-
MapBackedConfigSource
public MapBackedConfigSource(String name, Map<String,String> propertyMap, boolean copy)
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
-
MapBackedConfigSource
public MapBackedConfigSource(String name, Map<String,String> propertyMap, int defaultOrdinal)
Construct a new instance. The config source will use the given default ordinal, and will use the given map as-is (not a copy of it).- Parameters:
name- the config source namepropertyMap- the map to usedefaultOrdinal- the default ordinal to use if one is not given in the map
-
MapBackedConfigSource
public MapBackedConfigSource(String name, Map<String,String> propertyMap, int defaultOrdinal, boolean copy)
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
-
-