Class ConfigurationPropertiesUtil
java.lang.Object
io.quarkus.spring.boot.properties.deployment.ConfigurationPropertiesUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription(package private) static io.quarkus.gizmo.ResultHandlecreateReadMandatoryValueAndConvertIfNeeded(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 ConfigurationPropertiesUtil.ReadOptionalResponsecreateReadOptionalValueAndConvertIfNeeded(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.TypedetermineSingleGenericType(org.jboss.jandex.Type type, org.jboss.jandex.DotName declaringClass) static booleanisListOfObject(org.jboss.jandex.Type type) (package private) static voidregisterImplicitConverter(org.jboss.jandex.Type type, io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem> reflectiveClasses)
-
Field Details
-
PACKAGE_TO_PLACE_GENERATED_CLASSES
- See Also:
-
-
Method Details
-
createReadMandatoryValueAndConvertIfNeeded
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.- Parameters:
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 object
-
createReadOptionalValueAndConvertIfNeeded
static ConfigurationPropertiesUtil.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.- Parameters:
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 object
-
isListOfObject
public static boolean isListOfObject(org.jboss.jandex.Type type) -
determineSingleGenericType
static org.jboss.jandex.Type determineSingleGenericType(org.jboss.jandex.Type type, org.jboss.jandex.DotName declaringClass) -
registerImplicitConverter
static void registerImplicitConverter(org.jboss.jandex.Type type, io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem> reflectiveClasses)
-