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)
PropertySourceLoader
true
if the Resource
is supported.supports
in interface PropertySourceLoader
public org.springframework.core.env.PropertySource<?> load(String name, org.springframework.core.io.Resource resource)
PropertySourceLoader
load
in interface PropertySourceLoader
name
- the name of the property sourceprotected Properties loadProperties(org.springframework.core.io.Resource resource) throws IOException
IOException
Copyright © 2014. All rights reserved.