public class PropertiesPropertySourceLoader extends java.lang.Object implements PropertySourceLoader
PropertySource.| Constructor and Description |
|---|
PropertiesPropertySourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getFileExtensions()
Returns the file extensions that the loader supports (excluding the '.').
|
java.util.List<org.springframework.core.env.PropertySource<?>> |
load(java.lang.String name,
org.springframework.core.io.Resource resource)
Load the resource into one or more property sources.
|
public java.lang.String[] getFileExtensions()
PropertySourceLoadergetFileExtensions in interface PropertySourceLoaderpublic java.util.List<org.springframework.core.env.PropertySource<?>> load(java.lang.String name,
org.springframework.core.io.Resource resource)
throws java.io.IOException
PropertySourceLoaderload in interface PropertySourceLoadername - the root name of the property source. If multiple documents are loaded
an additional suffix should be added to the name for each source loaded.resource - the resource to loadjava.io.IOException - if the source cannot be loaded