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 Converters to
produce Values.- Author:
- Laird Nelson
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA coupling of aType, a priority (as defined in the MicroProfile Config specification), and aConverter. -
Constructor Summary
ConstructorsConstructorDescriptionConfigSourceProvider(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- theConfigSourcewhose getValue(String) method will be used to backValues produced by theget(Loader, Path)method; must not benullconverters- aMapofConverters indexed by their conversionType; may benull- Throws:
NullPointerException- ifconfigSourceisnull
-
ConfigSourceProvider
public ConfigSourceProvider(ConfigSource configSource, Collection<? extends ConfigSourceProvider.ConverterRegistration<?>> converterRegistrations) Creates a newConfigSourceProvider.- Parameters:
configSource- theConfigSourcewhose getValue(String) method will be used to backValues produced by theget(Loader, Path)method; must not benullconverterRegistrations- aCollectionofConfigSourceProvider.ConverterRegistrations; may benull- Throws:
NullPointerException- ifconfigSourceisnull- See Also:
-
-
Method Details
-
lowerBound
- Specified by:
lowerBoundin interfaceProvider
-
get
-