Class MapBackedConfigSource

    • Constructor Detail

      • 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