PropertySource that reads keys and values from a Map object.
The underlying map should not contain any null values in order to
comply with getProperty and containsProperty semantics.
PropertiesPropertySource
| Access | Constructor and Description |
|---|---|
| public | MapPropertySource(String
the associated name name, Map<String, Object> the Map source (without source)null values in order to get
consistent getProperty and containsProperty behavior)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | containsProperty(String
the name of the property to find name)Overrides org. PropertySource contains a property with the given name.
|
| public Object | getProperty(String
the property to find name)Implements abstract org. null if not found.
|
| public String[] | getPropertyNames()
Implements abstract org. null).
|
| MapPropertySource | back to summary |
|---|---|
| public MapPropertySource(String name, Map<String, Object> source) Create a new
| |
| containsProperty | back to summary |
|---|---|
| public boolean containsProperty(String name) Overrides org. Doc from org. Return whether this This implementation checks for the presence of the given name within the
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name) Implements abstract org. Doc from org. Return the value associated with the given name,
or | |
| getPropertyNames | back to summary |
|---|---|
| public String[] getPropertyNames() Implements abstract org. Doc from org. Return the names of all properties contained by the
source object (never
| |