org.springframework.boot.config
Interface PropertySourceLoader

All Known Implementing Classes:
PropertiesPropertySourceLoader, YamlPropertySourceLoader

public interface PropertySourceLoader

Strategy interface used to load 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.
 boolean supports(org.springframework.core.io.Resource resource)
          Returns true if the Resource is supported.
 

Method Detail

supports

boolean supports(org.springframework.core.io.Resource resource)
Returns true if the Resource is supported.

Returns:
if the resource is supported

load

org.springframework.core.env.PropertySource<?> load(org.springframework.core.io.Resource resource)
Load the resource into a property source.

Returns:
a property source


Copyright © 2013. All Rights Reserved.