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)
.
PropertySource.StubPropertySource
EMPTY_NAMES_ARRAY, logger
name, source
Constructor and Description |
---|
PropertiesPropertySource(String name,
Properties source) |
getProperty, getPropertyNames
containsProperty
public PropertiesPropertySource(String name, Properties source)