Class CallbackReader
java.lang.Object
io.smallrye.openapi.runtime.io.callback.CallbackReader
Reading the Callback annotation and json
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<org.jboss.jandex.AnnotationInstance>getCallbackAnnotations(AnnotationScannerContext context, org.jboss.jandex.AnnotationTarget target) static StringgetCallbackName(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation) static org.eclipse.microprofile.openapi.models.callbacks.CallbackreadCallback(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation) static org.eclipse.microprofile.openapi.models.callbacks.CallbackreadCallback(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation, org.jboss.jandex.MethodInfo methodInfo) Reads a Callback annotation into a model.readCallbacks(com.fasterxml.jackson.databind.JsonNode node) Reads theCallbackOpenAPI nodes.readCallbacks(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of Callback annotations.
-
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 contextannotationValue- 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 theCallbackOpenAPI 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 annotationcontext- the scanner contextmethodInfo- 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)
-