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 ([email protected]), Eric Wittmann ([email protected])
- See Also:
- callbackObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<org.jboss.jandex.AnnotationInstance>
getCallbackAnnotations(org.jboss.jandex.AnnotationTarget target)
static String
getCallbackName(org.jboss.jandex.AnnotationInstance annotation)
static org.eclipse.microprofile.openapi.models.callbacks.Callback
readCallback(AnnotationScannerContext context, org.jboss.jandex.AnnotationInstance annotation)
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.static Map<String,org.eclipse.microprofile.openapi.models.callbacks.Callback>
readCallbacks(com.fasterxml.jackson.databind.JsonNode node)
Reads theCallback
OpenAPI nodes.static Map<String,org.eclipse.microprofile.openapi.models.callbacks.Callback>
readCallbacks(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
Reads a map of Callback annotations.
-
-
-
Method Detail
-
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 theCallback
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 annotationcontext
- the scanner contextmethodInfo
- the method- Returns:
- Callback model
-
getCallbackAnnotations
public static List<org.jboss.jandex.AnnotationInstance> getCallbackAnnotations(org.jboss.jandex.AnnotationTarget target)
-
getCallbackName
public static String getCallbackName(org.jboss.jandex.AnnotationInstance annotation)
-
-