public class YamlPropertySourceLoader extends Object implements PropertySourceLoader
PropertySource.| Constructor and Description | 
|---|
YamlPropertySourceLoader()  | 
| Modifier and Type | Method and Description | 
|---|---|
String[] | 
getFileExtensions()
Returns the file extensions that the loader supports (excluding the '.'). 
 | 
org.springframework.core.env.PropertySource<?> | 
load(String name,
    org.springframework.core.io.Resource resource,
    String profile)
Load the resource into a property source. 
 | 
public String[] getFileExtensions()
PropertySourceLoadergetFileExtensions in interface PropertySourceLoaderpublic org.springframework.core.env.PropertySource<?> load(String name, org.springframework.core.io.Resource resource, String profile) throws IOException
PropertySourceLoaderload in interface PropertySourceLoadername - the name of the property sourceresource - the resource to loadprofile - the name of the profile to load or null. The profile can be
 used to load multi-document files (such as YAML). Simple property formats should
 null when asked to load a profile.nullIOException - if the source cannot be loadedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.