final class ConfigPropertiesUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ConfigPropertiesUtil.ReadOptionalResponse |
| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
PACKAGE_TO_PLACE_GENERATED_CLASSES |
| Modifier and Type | Method and Description |
|---|---|
(package private) static io.quarkus.gizmo.ResultHandle |
createReadMandatoryValueAndConvertIfNeeded(String propertyName,
org.jboss.jandex.Type resultType,
org.jboss.jandex.DotName declaringClass,
io.quarkus.gizmo.BytecodeCreator bytecodeCreator,
io.quarkus.gizmo.ResultHandle config)
Generates code that uses Config#getValue for simple objects, or SmallRyeConfig#getValues if it is a Collection
type.
|
(package private) static ConfigPropertiesUtil.ReadOptionalResponse |
createReadOptionalValueAndConvertIfNeeded(String propertyName,
org.jboss.jandex.Type resultType,
org.jboss.jandex.DotName declaringClass,
io.quarkus.gizmo.BytecodeCreator bytecodeCreator,
io.quarkus.gizmo.ResultHandle config)
Generates code that uses Config#getOptionalValue for simple objects, or SmallRyeConfig#getOptionalValues if it
is a Collection type.
|
(package private) static org.jboss.jandex.Type |
determineSingleGenericType(org.jboss.jandex.Type type,
org.jboss.jandex.DotName declaringClass) |
static boolean |
isListOfObject(org.jboss.jandex.Type type) |
(package private) static void |
registerImplicitConverter(org.jboss.jandex.Type type,
BuildProducer<ReflectiveClassBuildItem> reflectiveClasses) |
static final String PACKAGE_TO_PLACE_GENERATED_CLASSES
static io.quarkus.gizmo.ResultHandle createReadMandatoryValueAndConvertIfNeeded(String propertyName, org.jboss.jandex.Type resultType, org.jboss.jandex.DotName declaringClass, io.quarkus.gizmo.BytecodeCreator bytecodeCreator, io.quarkus.gizmo.ResultHandle config)
propertyName - Property name that needs to be fetchedresultType - Type to which the property value needs to be converted todeclaringClass - Config class where the type was encounteredbytecodeCreator - Where the bytecode will be generatedconfig - Reference to the MP config objectstatic ConfigPropertiesUtil.ReadOptionalResponse createReadOptionalValueAndConvertIfNeeded(String propertyName, org.jboss.jandex.Type resultType, org.jboss.jandex.DotName declaringClass, io.quarkus.gizmo.BytecodeCreator bytecodeCreator, io.quarkus.gizmo.ResultHandle config)
propertyName - Property name that needs to be fetchedresultType - Type to which the property value needs to be converted todeclaringClass - Config class where the type was encounteredbytecodeCreator - Where the bytecode will be generatedconfig - Reference to the MP config objectpublic static boolean isListOfObject(org.jboss.jandex.Type type)
static org.jboss.jandex.Type determineSingleGenericType(org.jboss.jandex.Type type,
org.jboss.jandex.DotName declaringClass)
static void registerImplicitConverter(org.jboss.jandex.Type type,
BuildProducer<ReflectiveClassBuildItem> reflectiveClasses)
Copyright © 2021 JBoss by Red Hat. All rights reserved.