org.springframework.boot.config
Class PropertiesPropertySourceLoader

java.lang.Object
  extended by 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

Constructor Summary
PropertiesPropertySourceLoader()
           
 
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
 

Constructor Detail

PropertiesPropertySourceLoader

public PropertiesPropertySourceLoader()
Method Detail

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.