Class QuarkusVaadinServletService

java.lang.Object
com.vaadin.flow.server.VaadinService
com.vaadin.flow.server.VaadinServletService
com.vaadin.quarkus.QuarkusVaadinServletService
All Implemented Interfaces:
Serializable

public class QuarkusVaadinServletService extends com.vaadin.flow.server.VaadinServletService
An implementation of VaadinService for Quarkus environment. This class looks up for and therefore provides an Instantiator bean. It also forwards Vaadin events to CDI listeners.
Author:
Vaadin Ltd
See Also:
  • Field Summary

    Fields inherited from class com.vaadin.flow.server.VaadinService

    ATMOSPHERE_MISSING_ERROR, INVALID_ATMOSPHERE_VERSION_WARNING
  • Constructor Summary

    Constructors
    Constructor
    Description
    QuarkusVaadinServletService(QuarkusVaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Executor
     
    void
    fireUIInitListeners(com.vaadin.flow.component.UI ui)
     
     
    void
     
    Optional<com.vaadin.flow.di.Instantiator>
     
    <T> Optional<T>
    lookup(Class<T> type)
    Gets an instance of a @VaadinServiceEnabled annotated bean of the given type.

    Methods inherited from class com.vaadin.flow.server.VaadinServletService

    constructVaadinContext, createRequestHandlers, getContextRootRelativePath, getCurrentResponse, getCurrentServletRequest, getMainDivId, getMimeType, getPwaRegistry, getResource, getResourceAsStream, getResourceInServletContext, getRouteRegistry, getServiceName, getStaticResource, requestCanCreateSession, resolveResource, setDefaultClassLoader

    Methods inherited from class com.vaadin.flow.server.VaadinService

    accessSession, addServiceDestroyListener, addSessionDestroyListener, addSessionInitListener, addUIInitListener, closeSession, createCriticalNotificationJSON, createCriticalNotificationJSON, createDefaultObjectMapper, createInstantiator, createSessionExpiredJSON, createUINotFoundJSON, createVaadinRequestInterceptors, createVaadinSession, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, getBootstrapInitialPredicate, getBootstrapUrlPredicate, getClassLoader, getContext, getCsrfTokenAttributeName, getCurrent, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getExecutor, getExistingSession, getInstantiator, getRequestHandlers, getRouter, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, getVaadinRequestInterceptors, handleRequest, handleSessionExpired, isAtmosphereAvailable, isCsrfTokenValid, isOtherSessionLocked, isResourceAvailable, isUIActive, loadSession, lockSession, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse

    Methods inherited from class java.lang.Object

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

    • QuarkusVaadinServletService

      public QuarkusVaadinServletService(QuarkusVaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager)
  • Method Details

    • init

      public void init() throws com.vaadin.flow.server.ServiceException
      Overrides:
      init in class com.vaadin.flow.server.VaadinService
      Throws:
      com.vaadin.flow.server.ServiceException
    • fireUIInitListeners

      public void fireUIInitListeners(com.vaadin.flow.component.UI ui)
      Overrides:
      fireUIInitListeners in class com.vaadin.flow.server.VaadinService
    • createDefaultExecutor

      protected Executor createDefaultExecutor()
      Overrides:
      createDefaultExecutor in class com.vaadin.flow.server.VaadinService
    • loadInstantiators

      public Optional<com.vaadin.flow.di.Instantiator> loadInstantiators() throws com.vaadin.flow.server.ServiceException
      Overrides:
      loadInstantiators in class com.vaadin.flow.server.VaadinService
      Throws:
      com.vaadin.flow.server.ServiceException
    • getServlet

      public QuarkusVaadinServlet getServlet()
      Overrides:
      getServlet in class com.vaadin.flow.server.VaadinServletService
    • lookup

      public <T> Optional<T> lookup(Class<T> type) throws com.vaadin.flow.server.ServiceException
      Gets an instance of a @VaadinServiceEnabled annotated bean of the given type.
      Type Parameters:
      T - the type of the service
      Parameters:
      type - the required service type
      Returns:
      an Optional wrapping the service instance, or Optional.empty() if no bean definition exists for given type.
      Throws:
      com.vaadin.flow.server.ServiceException - if multiple beans exists for the given type.