Class RestLinksTypeUtil

java.lang.Object
io.quarkus.resteasy.reactive.links.deployment.RestLinksTypeUtil

final class RestLinksTypeUtil extends Object
Shared helpers for deducing entity types and unwrapping async/reactive return types.
  • Method Details

    • deductEntityType

      static String deductEntityType(org.jboss.jandex.Type returnType)
      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.