org.springframework.core.env

## 类 PropertySource.StubPropertySource

- java.lang.Object
- - org.springframework.core.env.PropertySource<Object>
  - - org.springframework.core.env.PropertySource.StubPropertySource

- 封闭类:
    PropertySource<T>

      public static class PropertySource.StubPropertySource
      extends PropertySource<Object>

  `PropertySource` to be used as a placeholder in cases where an actual property source cannot be eagerly initialized at application context creation time. For example, a `ServletContext`-based property source must wait until the `ServletContext` object is available to its enclosing `ApplicationContext`. In such cases, a stub should be used to hold the intended default position/order of the property source, then be replaced during context refresh.
  另请参阅:
    `org.springframework.context.support.AbstractApplicationContext#initPropertySources()`, `org.springframework.web.context.support.StandardServletEnvironment`, `org.springframework.web.context.support.ServletContextPropertySource`

- - ### 嵌套类概要

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

      `PropertySource.StubPropertySource`

  - ### 字段概要

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

      `logger, name, source`

  - ### 构造器概要

    构造器
    构造器和说明
    `StubPropertySource(String name)`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getProperty(String name)` Always returns `null`.

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

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

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

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

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

    - #### StubPropertySource

          public StubPropertySource(String name)

  - ### 方法详细资料

    - #### getProperty

          @Nullable
          public String getProperty(String name)

      Always returns `null`.
      指定者:
        `getProperty` 在类中 `PropertySource<Object>`
      参数:
        `name` - the property to find
      另请参阅:
        `PropertyResolver.getRequiredProperty(String)`