public class MapPropertySource extends EnumerablePropertySource<Map<String,Object>>
PropertySource that reads keys and values from a Map object.PropertiesPropertySourcePropertySource.StubPropertySourceEMPTY_NAMES_ARRAY, loggername, source| Constructor and Description |
|---|
MapPropertySource(String name,
Map<String,Object> source) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String name)
Return the value associated with the given name,
null if not found. |
String[] |
getPropertyNames()
Return the names of all properties contained by the source object (never
null). |
containsPropertypublic Object getProperty(String name)
PropertySourcenull if not found.getProperty in class PropertySource<Map<String,Object>>name - the property to findPropertyResolver.getRequiredProperty(String)public String[] getPropertyNames()
EnumerablePropertySourcenull).getPropertyNames in class EnumerablePropertySource<Map<String,Object>>