Class ExecutableHint

java.lang.Object
org.springframework.aot.hint.MemberHint
org.springframework.aot.hint.ExecutableHint

public final class ExecutableHint extends MemberHint
A hint that describes the need for reflection on a Method or Constructor.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • ofConstructor

      public static ExecutableHint.Builder ofConstructor(List<TypeReference> parameterTypes)
      Initialize a builder with the parameter types of a constructor.
      Parameters:
      parameterTypes - the parameter types of the constructor
      Returns:
      a builder
    • ofMethod

      public static ExecutableHint.Builder ofMethod(String name, List<TypeReference> parameterTypes)
      Initialize a builder with the name and parameters types of a method.
      Parameters:
      name - the name of the method
      parameterTypes - the parameter types of the method
      Returns:
      a builder
    • getParameterTypes

      public List<TypeReference> getParameterTypes()
      Return the parameter types of the executable.
      Returns:
      the parameter types
      See Also:
    • getModes

      public List<ExecutableMode> getModes()
      Return the modes that apply to this hint.
      Returns:
      the modes