public interface PropertySourceFactory
PropertySource wrappers.DefaultPropertySourceFactory| 限定符和类型 | 方法和说明 |
|---|---|
PropertySource<?> |
createPropertySource(String name,
EncodedResource resource)
Create a
PropertySource that wraps the given resource. |
PropertySource<?> createPropertySource(@Nullable String name, EncodedResource resource) throws IOException
PropertySource that wraps the given resource.name - the name of the property sourceresource - the resource (potentially encoded) to wrapPropertySource (never null)IOException - if resource resolution failed