Class CallbackReader

java.lang.Object
io.smallrye.openapi.runtime.io.callback.CallbackReader

public class CallbackReader extends Object
Reading the Callback annotation and json
Author:
Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
See Also:
  • Method Details

    • readCallbacks

      public static Map<String,org.eclipse.microprofile.openapi.models.callbacks.Callback> readCallbacks(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
      Reads a map of Callback annotations.
      Parameters:
      context - the scanner context
      annotationValue - Map of @Callback annotations
      Returns:
      Map of Callback models
    • readCallbacks

      public static Map<String,org.eclipse.microprofile.openapi.models.callbacks.Callback> readCallbacks(com.fasterxml.jackson.databind.JsonNode node)
      Reads the Callback OpenAPI nodes.
      Parameters:
      node - the json node
      Returns:
      Map of Callback models
    • readCallback

      public static org.eclipse.microprofile.openapi.models.callbacks.Callback readCallback(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation)
    • readCallback

      public static org.eclipse.microprofile.openapi.models.callbacks.Callback readCallback(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation, org.jboss.jandex.MethodInfo methodInfo)
      Reads a Callback annotation into a model.
      Parameters:
      annotation - the @Callback annotation
      context - the scanner context
      methodInfo - the method
      Returns:
      Callback model
    • getCallbackAnnotations

      public static List<org.jboss.jandex.AnnotationInstance> getCallbackAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target)
    • getCallbackName

      public static String getCallbackName(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation)