Class PropertiesPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<Map<String,Object>>
 
org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
 
org.springframework.core.env.MapPropertySource
org.springframework.core.env.PropertiesPropertySource
- Direct Known Subclasses:
- MockPropertySource, ResourcePropertySource
PropertySource implementation that extracts properties from a
Properties object.
Note that because a Properties object is technically an
<Object, Object> Hashtable, one may contain
non-String keys or values. This implementation, however is restricted to
accessing only String-based keys and values, in the same fashion as
Properties.getProperty(String) and Properties.setProperty(String, String).
- Since:
- 3.1
- Author:
- Chris Beams, Juergen Hoeller
- 
Nested Class SummaryNested classes/interfaces inherited from class PropertySourcePropertySource.StubPropertySource
- 
Field SummaryFields inherited from class PropertySourcelogger, name, source
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPropertiesPropertySource(String name, Map<String, Object> source) PropertiesPropertySource(String name, Properties source) 
- 
Method SummaryMethods inherited from class MapPropertySourcecontainsProperty, getProperty
- 
Constructor Details- 
PropertiesPropertySource
- 
PropertiesPropertySource
 
- 
- 
Method Details- 
getPropertyNamesDescription copied from class:EnumerablePropertySourceReturn the names of all properties contained by the source object (nevernull).- Overrides:
- getPropertyNamesin class- MapPropertySource
 
 
-