public final class ConfigProducerUtil extends Object
ConfigProducer.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getValue(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
org.eclipse.microprofile.config.Config config)
Retrieves a converted configuration value from
Config. |
static <T> T |
getValue(String name,
Type type,
String defaultValue,
org.eclipse.microprofile.config.Config config)
Retrieves a converted configuration value from
Config. |
public static <T> T getValue(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
org.eclipse.microprofile.config.Config config)
Config.injectionPoint - the InjectionPoint where the configuration value will be injectedconfig - the current Config instance.public static <T> T getValue(String name, Type type, String defaultValue, org.eclipse.microprofile.config.Config config)
Config.name - the name of the configuration property.type - the Type of the configuration value to convert.defaultValue - the defaut value to use if no configuration value is found.config - the current Config instance.Copyright © 2018–2021. All rights reserved.