Class YamlProvider
java.lang.Object
org.microbean.loader.spi.AbstractProvider
org.microbean.loader.spi.AbstractTreeBasedProvider<TreeNode>
org.microbean.loader.jackson.JacksonProvider
org.microbean.loader.jackson.InputStreamJacksonProvider
org.microbean.loader.jackson.yaml.YamlProvider
- All Implemented Interfaces:
Provider
An
InputStreamJacksonProvider
that reads YAML-formatted
application.yaml
classpath resources.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a newYamlProvider
that reads YAML-formattedapplication.yaml
classpath resources.YamlProvider
(Type lowerBound, String resourceName) Creates a newYamlProvider
. -
Method Summary
Methods inherited from class org.microbean.loader.jackson.InputStreamJacksonProvider
closeInputStream, inputStream, objectCodec, rootNode
Methods inherited from class org.microbean.loader.jackson.JacksonProvider
absent, get, get, list, map, names, nil, qualifiers, reader, size
Methods inherited from class org.microbean.loader.spi.AbstractTreeBasedProvider
container, find, path, path, qualifiers
Methods inherited from class org.microbean.loader.spi.AbstractProvider
get, lowerBound
-
Constructor Details
-
YamlProvider
public YamlProvider()Creates a newYamlProvider
that reads YAML-formattedapplication.yaml
classpath resources.- See Also:
-
YamlProvider
Creates a newYamlProvider
.- Parameters:
lowerBound
- the lower type bound of thisInputStreamJacksonProvider
implementation; may benull
resourceName
- the name of the classpath resource to read from; must not benull
- Throws:
NullPointerException
- ifresourceName
isnull
-