public final class YamlConfigReader extends Object implements ResourceLoader
ResourceLoader
for reading YAML encoded configurations.Constructor and Description |
---|
YamlConfigReader() |
Modifier and Type | Method and Description |
---|---|
<T> T |
load(InputStream inputStream,
Class<T> clazz)
Creates a new instance of T based on the contents read from the specified
InputStream . |
<T> T |
load(URL url,
Class<T> clazz)
Creates a new instance of T based on the contents retrieved from the specified
URL . |
public <T> T load(URL url, Class<T> clazz)
ResourceLoader
URL
.load
in interface ResourceLoader
url
- URL
defining the returned objectclazz
- generic class to defined by the supplied configurationpublic <T> T load(InputStream inputStream, Class<T> clazz)
InputStream
.load
in interface ResourceLoader
inputStream
- InputStream
clazz
- generic class to defined by the supplied configuration