Class JsonProvider
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.json.JsonProvider
- All Implemented Interfaces:
Provider
An
InputStreamJacksonProvider
that reads JSON-formatted
application.json
classpath resources.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a newJsonProvider
that reads JSON-formattedapplication.json
classpath resources.JsonProvider
(Type lowerBound, String resourceName) Creates a newJsonProvider
.JsonProvider
(String resourceName) Creates a newJsonProvider
. -
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
-
JsonProvider
public JsonProvider()Creates a newJsonProvider
that reads JSON-formattedapplication.json
classpath resources.- See Also:
-
JsonProvider
Creates a newJsonProvider
.- Parameters:
resourceName
- the name of the classpath resource to read from; must not benull
- Throws:
NullPointerException
- ifresourceName
isnull
- See Also:
-
JsonProvider
Creates a newJsonProvider
.- Parameters:
lowerBound
- the lower type bound of thisJsonProvider
; may benull
resourceName
- the name of the classpath resource to read from; must not benull
- Throws:
NullPointerException
- ifresourceName
isnull
-