Class ResteasyReactiveRecorder

java.lang.Object
io.quarkus.resteasy.reactive.common.runtime.ResteasyReactiveCommonRecorder
io.quarkus.resteasy.reactive.server.runtime.ResteasyReactiveRecorder
All Implemented Interfaces:
org.jboss.resteasy.reactive.server.spi.EndpointInvokerFactory

public class ResteasyReactiveRecorder extends io.quarkus.resteasy.reactive.common.runtime.ResteasyReactiveCommonRecorder implements org.jboss.resteasy.reactive.server.spi.EndpointInvokerFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static org.jboss.resteasy.reactive.server.core.Deployment
     
    static final Supplier<Executor>
     
    static final Supplier<Executor>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.core.Deployment>
    createDeployment(String applicationPath, org.jboss.resteasy.reactive.server.core.DeploymentInfo info, io.quarkus.arc.runtime.BeanContainer beanContainer, io.quarkus.runtime.ShutdownContext shutdownContext, io.quarkus.vertx.http.runtime.VertxHttpBuildTimeConfig httpBuildTimeConfig, org.jboss.resteasy.reactive.server.core.RequestContextFactory contextFactory, org.jboss.resteasy.reactive.spi.BeanFactory<ResteasyReactiveInitialiser> initClassFactory, io.quarkus.runtime.LaunchMode launchMode, boolean servletPresent)
     
    org.jboss.resteasy.reactive.server.core.ServerSerialisers
     
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    defaultAuthFailureHandler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.core.Deployment> deployment, boolean setTemplatePath)
     
    disableIfPropertyMatches(String propertyName, String propertyValue, boolean disableIfMissing)
     
    Function<Class<?>,org.jboss.resteasy.reactive.spi.BeanFactory<?>>
    factoryCreator(io.quarkus.arc.runtime.BeanContainer container)
     
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    failureHandler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.handlers.RestInitialHandler> restInitialHandlerRuntimeValue, boolean noCustomAuthCompletionExMapper, boolean noCustomAuthFailureExMapper, boolean noCustomAuthRedirectExMapper, boolean proactive)
     
    static org.jboss.resteasy.reactive.server.core.Deployment
     
    Supplier<jakarta.ws.rs.core.Application>
    handleApplication(Class<? extends jakarta.ws.rs.core.Application> applicationClass, boolean singletonClassesEmpty)
    This is Quarkus specific.
    io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
    handler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.handlers.RestInitialHandler> restInitialHandlerRuntimeValue)
     
    Supplier<org.jboss.resteasy.reactive.server.spi.EndpointInvoker>
    invoker(String invokerClassName)
     
    void
    registerContextResolver(org.jboss.resteasy.reactive.server.model.ContextResolvers contextResolvers, String string, org.jboss.resteasy.reactive.common.model.ResourceContextResolver resolver)
     
    void
    registerExceptionMapper(org.jboss.resteasy.reactive.server.core.ExceptionMapping exceptionMapping, String string, org.jboss.resteasy.reactive.common.model.ResourceExceptionMapper<Throwable> mapper)
     
    io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.handlers.RestInitialHandler>
    restInitialHandler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.core.Deployment> deploymentRuntimeValue)
     

    Methods inherited from class io.quarkus.resteasy.reactive.common.runtime.ResteasyReactiveCommonRecorder

    factory, loadClass, registerReader, registerWriter, setupBlockingOperationSupport

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EXECUTOR_SUPPLIER

      public static final Supplier<Executor> EXECUTOR_SUPPLIER
    • VTHREAD_EXECUTOR_SUPPLIER

      public static final Supplier<Executor> VTHREAD_EXECUTOR_SUPPLIER
    • currentDeployment

      static volatile org.jboss.resteasy.reactive.server.core.Deployment currentDeployment
  • Constructor Details

    • ResteasyReactiveRecorder

      public ResteasyReactiveRecorder()
  • Method Details

    • getCurrentDeployment

      public static org.jboss.resteasy.reactive.server.core.Deployment getCurrentDeployment()
    • createDeployment

      public io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.core.Deployment> createDeployment(String applicationPath, org.jboss.resteasy.reactive.server.core.DeploymentInfo info, io.quarkus.arc.runtime.BeanContainer beanContainer, io.quarkus.runtime.ShutdownContext shutdownContext, io.quarkus.vertx.http.runtime.VertxHttpBuildTimeConfig httpBuildTimeConfig, org.jboss.resteasy.reactive.server.core.RequestContextFactory contextFactory, org.jboss.resteasy.reactive.spi.BeanFactory<ResteasyReactiveInitialiser> initClassFactory, io.quarkus.runtime.LaunchMode launchMode, boolean servletPresent)
    • restInitialHandler

      public io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.handlers.RestInitialHandler> restInitialHandler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.core.Deployment> deploymentRuntimeValue)
    • handler

      public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> handler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.handlers.RestInitialHandler> restInitialHandlerRuntimeValue)
    • failureHandler

      public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> failureHandler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.handlers.RestInitialHandler> restInitialHandlerRuntimeValue, boolean noCustomAuthCompletionExMapper, boolean noCustomAuthFailureExMapper, boolean noCustomAuthRedirectExMapper, boolean proactive)
    • handleApplication

      public Supplier<jakarta.ws.rs.core.Application> handleApplication(Class<? extends jakarta.ws.rs.core.Application> applicationClass, boolean singletonClassesEmpty)
      This is Quarkus specific.

      We have a strategy around handling the Application class and build time init, that allows for the singletons to still work.

      Parameters:
      applicationClass -
      singletonClassesEmpty -
      Returns:
    • registerExceptionMapper

      public void registerExceptionMapper(org.jboss.resteasy.reactive.server.core.ExceptionMapping exceptionMapping, String string, org.jboss.resteasy.reactive.common.model.ResourceExceptionMapper<Throwable> mapper)
    • registerContextResolver

      public void registerContextResolver(org.jboss.resteasy.reactive.server.model.ContextResolvers contextResolvers, String string, org.jboss.resteasy.reactive.common.model.ResourceContextResolver resolver)
    • invoker

      public Supplier<org.jboss.resteasy.reactive.server.spi.EndpointInvoker> invoker(String invokerClassName)
      Specified by:
      invoker in interface org.jboss.resteasy.reactive.server.spi.EndpointInvokerFactory
    • factoryCreator

      public Function<Class<?>,org.jboss.resteasy.reactive.spi.BeanFactory<?>> factoryCreator(io.quarkus.arc.runtime.BeanContainer container)
    • clientProxyUnwrapper

      public Function<Object,Object> clientProxyUnwrapper()
    • disableIfPropertyMatches

      public Supplier<Boolean> disableIfPropertyMatches(String propertyName, String propertyValue, boolean disableIfMissing)
    • createServerSerialisers

      public org.jboss.resteasy.reactive.server.core.ServerSerialisers createServerSerialisers()
    • defaultAuthFailureHandler

      public io.vertx.core.Handler<io.vertx.ext.web.RoutingContext> defaultAuthFailureHandler(io.quarkus.runtime.RuntimeValue<org.jboss.resteasy.reactive.server.core.Deployment> deployment, boolean setTemplatePath)
    • beanUnavailable

      public Supplier<Boolean> beanUnavailable(String className)