@Singleton public class YamlReader extends Object
YamlReader
reads configuration from a yaml file and returns it as a map representing bean properties.Constructor and Description |
---|
YamlReader() |
Modifier and Type | Method and Description |
---|---|
protected org.yaml.snakeyaml.Yaml |
newSnakeYaml(info.magnolia.resourceloader.Resource res) |
Object |
read(info.magnolia.resourceloader.Resource res) |
protected Object |
readNoCast(info.magnolia.resourceloader.Resource res) |
Map<String,Object> |
readToMap(info.magnolia.resourceloader.Resource resource) |
public Object read(info.magnolia.resourceloader.Resource res) throws IOException
IOException
public Map<String,Object> readToMap(info.magnolia.resourceloader.Resource resource) throws IOException
IOException
protected Object readNoCast(info.magnolia.resourceloader.Resource res) throws IOException
IOException
protected org.yaml.snakeyaml.Yaml newSnakeYaml(info.magnolia.resourceloader.Resource res)
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.