Class ConfigSourceProvider
java.lang.Object
org.microbean.loader.microprofile.config.configsource.ConfigSourceProvider
- All Implemented Interfaces:
Provider
A
Provider
that uses a MicroProfile Config ConfigSource
and
MicroProfile Config Converter
s to
produce Value
s.- Author:
- Laird Nelson
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A coupling of aType
, a priority (as defined in the MicroProfile Config specification), and aConverter
. -
Constructor Summary
ConstructorDescriptionConfigSourceProvider
(ConfigSource configSource, Collection<? extends ConfigSourceProvider.ConverterRegistration<?>> converterRegistrations) Creates a newConfigSourceProvider
.ConfigSourceProvider
(ConfigSource configSource, Map<? extends Type, ? extends Converter<?>> converters) Creates a newConfigSourceProvider
. -
Method Summary
-
Constructor Details
-
ConfigSourceProvider
public ConfigSourceProvider(ConfigSource configSource, Map<? extends Type, ? extends Converter<?>> converters) Creates a newConfigSourceProvider
.- Parameters:
configSource
- theConfigSource
whose getValue(String) method will be used to backValue
s produced by theget(Loader, Path)
method; must not benull
converters
- aMap
ofConverter
s indexed by their conversionType
; may benull
- Throws:
NullPointerException
- ifconfigSource
isnull
-
ConfigSourceProvider
public ConfigSourceProvider(ConfigSource configSource, Collection<? extends ConfigSourceProvider.ConverterRegistration<?>> converterRegistrations) Creates a newConfigSourceProvider
.- Parameters:
configSource
- theConfigSource
whose getValue(String) method will be used to backValue
s produced by theget(Loader, Path)
method; must not benull
converterRegistrations
- aCollection
ofConfigSourceProvider.ConverterRegistration
s; may benull
- Throws:
NullPointerException
- ifconfigSource
isnull
- See Also:
-
-
Method Details
-
lowerBound
- Specified by:
lowerBound
in interfaceProvider
-
get
-