Class SignatureMethodCreator

java.lang.Object
io.quarkus.rest.data.panache.deployment.utils.SignatureMethodCreator

public final class SignatureMethodCreator extends Object
  • Constructor Details

    • SignatureMethodCreator

      public SignatureMethodCreator()
  • Method Details

    • getMethodCreator

      public static io.quarkus.gizmo.MethodCreator getMethodCreator(String methodName, io.quarkus.gizmo.ClassCreator classCreator, SignatureMethodCreator.ReturnType returnType, SignatureMethodCreator.Parameter... parameters)
      Creates a method using a signature (which allows declaring parameterized types like lists). For example, for the method: "List list(List sort, int size, int other, String uri)" It will use the following signature the generated the method: "(Ljava/util/Listinvalid input: '<'Ljava/lang/String;>;IILjava/lang/String;)Ljava/util/Listinvalid input: '<'Ljava/lang/String;>;". One useful utility to verify the method signatures is using "javap -v Test.class" where the Test java class is a compiled version of the method you want to see the signature.
    • param

      public static SignatureMethodCreator.Parameter param(String name, Object type)
    • param

      public static SignatureMethodCreator.Parameter param(String name, Object clazz, io.quarkus.gizmo.Type type)
    • responseType

      public static SignatureMethodCreator.ReturnType responseType(Object entityTypeStr)
    • uniType

      public static SignatureMethodCreator.ReturnType uniType(Object entityTypeStr)