All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.iris_events.asyncapi.parsers.ResponseParser Maven / Gradle / Ivy

package org.iris_events.asyncapi.parsers;

import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.IndexView;
import org.jboss.jandex.Type;

public class ResponseParser {
    private static final String MESSAGE_RESPONSE_PARAM = "response";

    public static Type getFromAnnotationInstance(AnnotationInstance messageAnnotation, IndexView index) {
        return messageAnnotation.valueWithDefault(index, MESSAGE_RESPONSE_PARAM).asClass();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy