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
- See Also:
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
CONFIG_ORDINAL, DEFAULT_ORDINAL -
Constructor Summary
ConstructorsConstructorDescriptionMapBackedConfigSource(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
Modifier and TypeMethodDescriptionMethods inherited from class io.smallrye.config.common.AbstractConfigSource
getName, getOrdinal, toString
-
Constructor Details
-
MapBackedConfigSource
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
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
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
-
-
Method Details
-
getProperties
-
getPropertyNames
-
getValue
-