public abstract class MapBackedConfigSource extends AbstractConfigSource
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getProperties() |
Set<String> |
getPropertyNames() |
String |
getValue(String propertyName) |
getName, getOrdinal, toStringpublic MapBackedConfigSource(String name, Map<String,String> propertyMap)
100 and
will use the given map as-is (not a copy of it).name - the config source namepropertyMap - the map to usepublic MapBackedConfigSource(String name, Map<String,String> propertyMap, boolean copy)
100 and
will use a copy of the given map if copy is true.name - the config source namepropertyMap - the map to usecopy - true to copy the given map, false otherwisepublic MapBackedConfigSource(String name, Map<String,String> propertyMap, int defaultOrdinal)
name - the config source namepropertyMap - the map to usedefaultOrdinal - the default ordinal to use if one is not given in the mappublic MapBackedConfigSource(String name, Map<String,String> propertyMap, int defaultOrdinal, boolean copy)
copy is true.name - the config source namepropertyMap - the map to usedefaultOrdinal - the default ordinal to use if one is not given in the mapcopy - true to copy the given map, false otherwiseCopyright © 2018–2021. All rights reserved.