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 '.'). 
 | 
List<PropertySource<?>> | 
load(String name,
    Resource resource)
Load the resource into one or more property sources. 
 | 
public String[] getFileExtensions()
PropertySourceLoadergetFileExtensions in interface PropertySourceLoaderpublic List<PropertySource<?>> load(String name, Resource resource) throws IOException
PropertySourceLoaderload in interface PropertySourceLoadername - the root name of the property source. If multiple documents are loaded
 an additional suffix should be added to the name for each source loaded.resource - the resource to loadIOException - if the source cannot be loadedCopyright © 2018 Pivotal Software, Inc.. All rights reserved.