Class ConfigurationPropertiesUtil

java.lang.Object
io.quarkus.spring.boot.properties.deployment.ConfigurationPropertiesUtil

final class ConfigurationPropertiesUtil extends Object
  • Field Details

  • 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 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 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 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)
    • registerImplicitConverter

      static void registerImplicitConverter(org.jboss.jandex.Type type, io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem> reflectiveClasses)