public class MapPropertySource extends BasePropertySource
| Constructor and Description |
|---|
MapPropertySource(String name,
Map<String,String> props)
Creates a new instance, hereby using the default mechanism for evaluating the property source's
priority.
|
MapPropertySource(String name,
Map<String,String> props,
String prefix)
Creates a new instance, hereby using the default mechanism for evaluating the property source's
priority, but applying a custom mapping
prefix to the entries provided. |
MapPropertySource(String name,
Properties props,
String prefix)
Creates a new instance, hereby using the default mechanism for evaluating the property source's
priority, but applying a custom mapping
rootContext to the entries provided. |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getMap(Properties props)
Simple method to convert Properties into a Map instance.
|
Map<String,org.apache.tamaya.spi.PropertyValue> |
getProperties() |
get, getDefaultOrdinal, getName, getOrdinal, isScannable, setDefaultOrdinal, setName, setOrdinal, toString, toStringValuespublic MapPropertySource(String name, Map<String,String> props)
name - unique name of this source.props - the propertiespublic MapPropertySource(String name, Map<String,String> props, String prefix)
prefix to the entries provided.name - unique name of this source.props - the propertiesprefix - the prefix context mapping, or null (for no mapping).public MapPropertySource(String name, Properties props, String prefix)
rootContext to the entries provided.name - unique name of this source.props - the propertiesprefix - the prefix context mapping, or null (for no mapping).public static Map<String,String> getMap(Properties props)
props - the properties, not null.Copyright © 2016–2017 Apache Software Foundation. All rights reserved.