org.springframework.core.io.support

## 接口 PropertySourceFactory

- 所有已知实现类:
    DefaultPropertySourceFactory

      public interface PropertySourceFactory

  Strategy interface for creating resource-based `PropertySource` wrappers.
  从以下版本开始:
    4.3
  作者:
    Juergen Hoeller
  另请参阅:
    `DefaultPropertySourceFactory`

- - ### 方法概要

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

- - ### 方法详细资料

    - #### createPropertySource

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

      Create a `PropertySource` that wraps the given resource.
      参数:
        `name` - the name of the property source
        `resource` - the resource (potentially encoded) to wrap
      返回:
        the new `PropertySource` (never `null`)
      抛出:
        `IOException` - if resource resolution failed