@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 String |
formatYamlExceptionMessage(Resource res,
org.yaml.snakeyaml.error.YAMLException ye) |
protected org.yaml.snakeyaml.Yaml |
newSnakeYaml(Resource res) |
protected Object |
readNoCast(Resource res) |
Map<String,Object> |
readToMap(Resource res) |
public Map<String,Object> readToMap(Resource res) throws IOException
IOException
protected Object readNoCast(Resource res) throws IOException
IOException
protected org.yaml.snakeyaml.Yaml newSnakeYaml(Resource res)
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.