Class ConfigPropertiesUtil


  • final class ConfigPropertiesUtil
    extends Object
    • 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 fetched
        resultType - Type to which the property value needs to be converted to
        declaringClass - Config class where the type was encountered
        bytecodeCreator - Where the bytecode will be generated
        config - 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 fetched
        resultType - Type to which the property value needs to be converted to
        declaringClass - Config class where the type was encountered
        bytecodeCreator - Where the bytecode will be generated
        config - 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)