Class AutowiredArgumentsCodeGenerator

java.lang.Object
org.springframework.beans.factory.aot.AutowiredArgumentsCodeGenerator

public class AutowiredArgumentsCodeGenerator extends Object
Code generator to apply AutowiredArguments.

Generates code in the form: args.get(0), args.get(1) or args.get(0, String.class), args.get(1, Integer.class)

The simpler form is only used if the target method or constructor is unambiguous.

Since:
6.0
Author:
Phillip Webb, Stephane Nicoll
  • Constructor Details

    • AutowiredArgumentsCodeGenerator

      public AutowiredArgumentsCodeGenerator(Class<?> target, Executable executable)
  • Method Details

    • generateCode

      public org.springframework.javapoet.CodeBlock generateCode(Class<?>[] parameterTypes)
    • generateCode

      public org.springframework.javapoet.CodeBlock generateCode(Class<?>[] parameterTypes, int startIndex)
    • generateCode

      public org.springframework.javapoet.CodeBlock generateCode(Class<?>[] parameterTypes, int startIndex, String variableName)