org.springframework.core.env

## 类 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

- 直接已知子类:
    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)`.

  从以下版本开始:
    3.1
  作者:
    Chris Beams, Juergen Hoeller

- - ### 嵌套类概要

    - ### 从类继承的嵌套类/接口 org.springframework.core.env.PropertySource

      `PropertySource.StubPropertySource`

  - ### 字段概要

    - ### 从类继承的字段 org.springframework.core.env.PropertySource

      `logger, name, source`

  - ### 构造器概要

    构造器
    限定符 | 构造器和说明
    --- | ---
    `protected` | `PropertiesPropertySource(String name, Map<String,Object> source)`
    `` | `PropertiesPropertySource(String name, Properties source)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String[]` | `getPropertyNames()` Return the names of all properties contained by the source object (never `null`).

    - ### 从类继承的方法 org.springframework.core.env.MapPropertySource

      `containsProperty, getProperty`

    - ### 从类继承的方法 org.springframework.core.env.PropertySource

      `equals, getName, getSource, hashCode, named, toString`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### PropertiesPropertySource

          public PropertiesPropertySource(String name,
                                          Properties source)

    - #### PropertiesPropertySource

          protected PropertiesPropertySource(String name,
                                             Map<String,Object> source)

  - ### 方法详细资料

    - #### getPropertyNames

          public String[] getPropertyNames()

      从类复制的说明: `EnumerablePropertySource`
      Return the names of all properties contained by the source object (never `null`).
      覆盖:
        `getPropertyNames` 在类中 `MapPropertySource`