public class DefaultPropertySourceFactory extends Object implements PropertySourceFactory
PropertySourceFactory
,
wrapping every resource in a ResourcePropertySource
.PropertySourceFactory
,
ResourcePropertySource
Constructor and Description |
---|
DefaultPropertySourceFactory() |
Modifier and Type | Method and Description |
---|---|
PropertySource<?> |
createPropertySource(String name,
EncodedResource resource)
Create a
PropertySource that wraps the given resource. |
public PropertySource<?> createPropertySource(@Nullable String name, EncodedResource resource) throws IOException
PropertySourceFactory
PropertySource
that wraps the given resource.createPropertySource
in interface PropertySourceFactory
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 wrapPropertySource
(never null
)IOException
- if resource resolution failed