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
ConstructorsConstructorDescriptionCreates a newPropertiesProviderthat reads Java properties-formattedapplication.propertiesclasspath 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, rootNodeMethods inherited from class org.microbean.loader.jackson.JacksonProvider
absent, get, get, list, map, names, nil, qualifiers, reader, sizeMethods inherited from class org.microbean.loader.spi.AbstractTreeBasedProvider
container, find, path, path, qualifiersMethods inherited from class org.microbean.loader.spi.AbstractProvider
get, lowerBound
-
Constructor Details
-
PropertiesProvider
public PropertiesProvider()Creates a newPropertiesProviderthat reads Java properties-formattedapplication.propertiesclasspath resources.- See Also:
-
PropertiesProvider
Creates a newPropertiesProvider.- Parameters:
resourceName- the name of the classpath resource to read from; must not benull- Throws:
NullPointerException- ifresourceNameisnull- See Also:
-
PropertiesProvider
Creates a newPropertiesProvider.- Parameters:
lowerBound- the lower type bound of thisInputStreamJacksonProviderimplementation; may benullresourceName- the name of the classpath resource to read from; must not benull- Throws:
NullPointerException- ifresourceNameisnull
-