org.springframework.core.env
Class MapPropertySource
java.lang.Object
   org.springframework.core.env.PropertySource<T>
org.springframework.core.env.PropertySource<T>
       org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
           org.springframework.core.env.MapPropertySource
org.springframework.core.env.MapPropertySource
- Direct Known Subclasses: 
- PropertiesPropertySource, SystemEnvironmentPropertySource
- public class MapPropertySource 
- extends EnumerablePropertySource<Map<String,Object>>
PropertySource that reads keys and values from a Map object.
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
- PropertiesPropertySource
 
 
 
 
 
 
 
 
 
 
MapPropertySource
public MapPropertySource(String name,
                         Map<String,Object> source)
getProperty
public Object getProperty(String name)
- Description copied from class: PropertySource
- Return the value associated with the given name, nullif not found.
 
- 
- Specified by:
- getPropertyin class- PropertySource<Map<String,Object>>
 
- 
- Parameters:
- name- the property to find
- See Also:
- PropertyResolver.getRequiredProperty(String)
 
getPropertyNames
public String[] getPropertyNames()
- Description copied from class: EnumerablePropertySource
- Return the names of all properties contained by the source object (never null).
 
- 
- Specified by:
- getPropertyNamesin class- EnumerablePropertySource<Map<String,Object>>
 
-