Class ConfigPropertiesUtil
- java.lang.Object
-
- io.quarkus.arc.deployment.configproperties.ConfigPropertiesUtil
-
final class ConfigPropertiesUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ConfigPropertiesUtil.ReadOptionalResponse
-
Field Summary
Fields Modifier and Type Field Description (package private) static String
PACKAGE_TO_PLACE_GENERATED_CLASSES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
PACKAGE_TO_PLACE_GENERATED_CLASSES
static final String PACKAGE_TO_PLACE_GENERATED_CLASSES
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 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.- 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, BuildProducer<ReflectiveClassBuildItem> reflectiveClasses)
-
-