org.springframework.core.io.support

## Interface PropertySourceFactory

- All Known Implementing Classes:
    DefaultPropertySourceFactory

      public interface PropertySourceFactory

  Strategy interface for creating resource-based `PropertySource` wrappers.
  Since:
    4.3
  Author:
    Juergen Hoeller
  See Also:
    `DefaultPropertySourceFactory`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `PropertySource<?>` | `createPropertySource(String name, EncodedResource resource)` Create a `PropertySource` that wraps the given resource.

- - ### Method Detail

    - #### createPropertySource

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

      Create a `PropertySource` that wraps the given resource.
      Parameters:
        `name` - the name of the property source (can be `null` in which case the factory implementation will have to generate a name based on the given resource)
        `resource` - the resource (potentially encoded) to wrap
      Returns:
        the new `PropertySource` (never `null`)
      Throws:
        `IOException` - if resource resolution failed