org.springframework.boot.config
Class PropertiesPropertySourceLoader
java.lang.Object
org.springframework.boot.config.PropertiesPropertySourceLoader
- All Implemented Interfaces:
- PropertySourceLoader
- Direct Known Subclasses:
- YamlPropertySourceLoader
public class PropertiesPropertySourceLoader
- extends Object
- implements PropertySourceLoader
Strategy to load '.properties' files into a PropertySource.
- Author:
- Dave Syer
|
Method Summary |
org.springframework.core.env.PropertySource<?> |
load(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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesPropertySourceLoader
public PropertiesPropertySourceLoader()
supports
public boolean supports(org.springframework.core.io.Resource resource)
- Description copied from interface:
PropertySourceLoader
- Returns
true if the Resource is supported.
- Specified by:
supports in interface PropertySourceLoader
- Returns:
- if the resource is supported
load
public org.springframework.core.env.PropertySource<?> load(org.springframework.core.io.Resource resource)
- Description copied from interface:
PropertySourceLoader
- Load the resource into a property source.
- Specified by:
load in interface PropertySourceLoader
- Returns:
- a property source
loadProperties
protected Properties loadProperties(org.springframework.core.io.Resource resource)
throws IOException
- Throws:
IOException
Copyright © 2013. All Rights Reserved.