org.springframework.core.env
Class PropertiesPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<java.util.Map<java.lang.String,java.lang.Object>>
org.springframework.core.env.MapPropertySource
org.springframework.core.env.PropertiesPropertySource
- Direct Known Subclasses:
- MockPropertySource, ResourcePropertySource
public class PropertiesPropertySource
- extends MapPropertySource
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(java.lang.String) and Properties.setProperty(java.lang.String, java.lang.String).
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
MockPropertySource
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PropertiesPropertySource
public PropertiesPropertySource(java.lang.String name,
java.util.Properties source)