Class PropertiesProvider
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.properties.PropertiesProvider
- All Implemented Interfaces:
Provider
An
InputStreamJacksonProvider
that reads Java
properties-formatted files and classpath resources.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a newPropertiesProvider
that reads Java properties-formattedapplication.properties
classpath resources.PropertiesProvider
(Type lowerBound, String resourceName) Creates a newPropertiesProvider
.PropertiesProvider
(String resourceName) Creates a newPropertiesProvider
. -
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
-
PropertiesProvider
public PropertiesProvider()Creates a newPropertiesProvider
that reads Java properties-formattedapplication.properties
classpath resources.- See Also:
-
PropertiesProvider
Creates a newPropertiesProvider
.- Parameters:
resourceName
- the name of the classpath resource to read from; must not benull
- Throws:
NullPointerException
- ifresourceName
isnull
- See Also:
-
PropertiesProvider
Creates a newPropertiesProvider
.- 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
-