public class PropertiesPropertySourceLoader extends Object implements PropertySourceLoader
PropertySource.| Constructor and Description |
|---|
PropertiesPropertySourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.env.PropertySource<?> |
load(String name,
org.springframework.core.io.Resource resource)
Load the resource into a property source.
|
protected Properties |
loadProperties(org.springframework.core.io.Resource resource) |
boolean |
supports(org.springframework.core.io.Resource resource)
Returns
true if the Resource is supported. |
public boolean supports(org.springframework.core.io.Resource resource)
PropertySourceLoadertrue if the Resource is supported.supports in interface PropertySourceLoaderpublic org.springframework.core.env.PropertySource<?> load(String name, org.springframework.core.io.Resource resource)
PropertySourceLoaderload in interface PropertySourceLoadername - the name of the property sourceprotected Properties loadProperties(org.springframework.core.io.Resource resource) throws IOException
IOExceptionCopyright © 2014. All rights reserved.