Class RestLinksTypeUtil
java.lang.Object
io.quarkus.resteasy.reactive.links.deployment.RestLinksTypeUtil
Shared helpers for deducing entity types and unwrapping async/reactive return types.
-
Method Summary
Modifier and TypeMethodDescription(package private) static StringdeductEntityType(org.jboss.jandex.Type returnType) If a method return type is parameterized and has a single argument (e.g.(package private) static org.jboss.jandex.TypegetNonAsyncReturnType(org.jboss.jandex.Type returnType) Unwrap common async/reactive wrappers to the underlying payload type.
-
Method Details
-
deductEntityType
If a method return type is parameterized and has a single argument (e.g. List), then use that argument as the entity type. Otherwise, use the return type itself. -
getNonAsyncReturnType
static org.jboss.jandex.Type getNonAsyncReturnType(org.jboss.jandex.Type returnType) Unwrap common async/reactive wrappers to the underlying payload type.
-