org.springframework.core.io.support

## 类 DefaultPropertySourceFactory

- java.lang.Object
- - org.springframework.core.io.support.DefaultPropertySourceFactory

- 所有已实现的接口:
    PropertySourceFactory

      public class DefaultPropertySourceFactory
      extends Object
      implements PropertySourceFactory

  The default implementation for `PropertySourceFactory`, wrapping every resource in a `ResourcePropertySource`.
  从以下版本开始:
    4.3
  作者:
    Juergen Hoeller
  另请参阅:
    `PropertySourceFactory`, `ResourcePropertySource`

- - ### 构造器概要

    构造器
    构造器和说明
    `DefaultPropertySourceFactory()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `PropertySource<?>` | `createPropertySource(String name, EncodedResource resource)` Create a `PropertySource` that wraps the given resource.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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

    - #### DefaultPropertySourceFactory

          public DefaultPropertySourceFactory()

  - ### 方法详细资料

    - #### createPropertySource

          public PropertySource<?> createPropertySource(@Nullable
                                                        String name,
                                                        EncodedResource resource)
                                                 throws IOException

      从接口复制的说明: `PropertySourceFactory`
      Create a `PropertySource` that wraps the given resource.
      指定者:
        `createPropertySource` 在接口中 `PropertySourceFactory`
      参数:
        `name` - the name of the property source
        `resource` - the resource (potentially encoded) to wrap
      返回:
        the new `PropertySource` (never `null`)
      抛出:
        `IOException` - if resource resolution failed