public class DefaultPropertySourceFactory extends java.lang.Object implements PropertySourceFactory
PropertySourceFactory,
wrapping every resource in a ResourcePropertySource.PropertySourceFactory,
ResourcePropertySource| Constructor and Description |
|---|
DefaultPropertySourceFactory() |
| Modifier and Type | Method and Description |
|---|---|
PropertySource<?> |
createPropertySource(java.lang.String name,
EncodedResource resource)
Create a
PropertySource that wraps the given resource. |
public PropertySource<?> createPropertySource(java.lang.String name, EncodedResource resource) throws java.io.IOException
PropertySourceFactoryPropertySource that wraps the given resource.createPropertySource in interface PropertySourceFactoryname - the name of the property sourceresource - the resource (potentially encoded) to wrapPropertySource (never null)java.io.IOException - if resource resolution failed