Class 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:
    Serialized Form
    • 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, javax.enterprise.inject.spi.BeanManager beanManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fireUIInitListeners​(com.vaadin.flow.component.UI ui)  
      QuarkusVaadinServlet getServlet()  
      void init()  
      Optional<com.vaadin.flow.di.Instantiator> loadInstantiators()  
      <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, createInstantiator, createSessionExpiredJSON, createUINotFoundJSON, createVaadinSession, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, getBootstrapInitialPredicate, getBootstrapUrlPredicate, getClassLoader, getContext, getCsrfTokenAttributeName, getCurrent, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getExistingSession, getInstantiator, getRequestHandlers, getRouter, getSessionAttributeName, getSessionLock, getSystemMessages, getSystemMessagesProvider, handleRequest, handleSessionExpired, isAtmosphereAvailable, isCsrfTokenValid, isOtherSessionLocked, isResourceAvailable, isUIActive, loadSession, lockSession, modifyBootstrapPage, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
    • Constructor Detail

      • QuarkusVaadinServletService

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

      • init

        public void init()
                  throws com.vaadin.flow.server.ServiceException
        Overrides:
        init in class com.vaadin.flow.server.VaadinServletService
        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
      • 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.