类 PropertiesPropertySource
- java.lang.Object
- org.springframework.core.env.PropertySource<T>
- org.springframework.core.env.EnumerablePropertySource<Map<String,Object>>
- org.springframework.core.env.MapPropertySource
- org.springframework.core.env.PropertiesPropertySource
public class PropertiesPropertySource extends MapPropertySource
PropertySourceimplementation that extracts properties from aPropertiesobject.Note that because a
Propertiesobject is technically an<Object, Object>Hashtable, one may contain non-Stringkeys or values. This implementation, however is restricted to accessing onlyString-based keys and values, in the same fashion asProperties.getProperty(java.lang.String)andProperties.setProperty(java.lang.String, java.lang.String).- 从以下版本开始:
- 3.1
- 作者:
- Chris Beams, Juergen Hoeller
嵌套类概要
从类继承的嵌套类/接口 org.springframework.core.env.PropertySource
PropertySource.StubPropertySource
字段概要
从类继承的字段 org.springframework.core.env.PropertySource
logger, name, source
构造器概要
构造器 限定符 构造器 说明 protectedPropertiesPropertySource(String name, Map<String,Object> source)PropertiesPropertySource(String name, Properties source)
方法概要
从类继承的方法 org.springframework.core.env.MapPropertySource
containsProperty, getProperty, getPropertyNames
构造器详细资料
PropertiesPropertySource
public PropertiesPropertySource(String name, Properties source)
PropertiesPropertySource
protected PropertiesPropertySource(String name, Map<String,Object> source)