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:
  • Constructor Details

    • MapBackedConfigSource

      public MapBackedConfigSource(String name, Map<String,String> propertyMap)
      Construct a new instance. The config source will use a default ordinal of 100 and will use the given map as-is (not a copy of it).
      Parameters:
      name - the config source name
      propertyMap - 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 of 100 and will use a copy of the given map if copy is true.
      Parameters:
      name - the config source name
      propertyMap - the map to use
      copy - true to copy the given map, false otherwise
    • 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 name
      propertyMap - the map to use
      defaultOrdinal - 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 if copy is true.
      Parameters:
      name - the config source name
      propertyMap - the map to use
      defaultOrdinal - the default ordinal to use if one is not given in the map
      copy - true to copy the given map, false otherwise
  • Method Details