Class MapBackedConfigValueConfigSource

    • 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 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
      • 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 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 Detail

      • getPropertyNames

        public Set<String> getPropertyNames()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getPropertyNames in interface org.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: ConfigValueConfigSource
        Return the ConfigValue for the specified property in this configuration source.
        Specified by:
        getConfigValue in interface ConfigValueConfigSource
        Parameters:
        propertyName - the property name
        Returns:
        the ConfigValue, or null if the property is not present