Class CdiVaadinServletService

  • All Implemented Interfaces:
    Serializable

    public class CdiVaadinServletService
    extends com.vaadin.flow.server.VaadinServletService
    Servlet service implementation for Vaadin CDI.

    This class creates and initializes a @VaadinServiceEnabled Instantiator.

    Some @VaadinServiceEnabled beans can be used to customize Vaadin, they are also created, and bound if found.

    • SystemMessagesProvider is bound to service by VaadinService.setSystemMessagesProvider(SystemMessagesProvider).
    • ErrorHandler is bound to created sessions by VaadinSession.setErrorHandler(ErrorHandler).
    See Also:
    CdiVaadinServlet, 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
      CdiVaadinServletService​(CdiVaadinServlet 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)  
      CdiVaadinServlet getServlet()  
      void init()  
      Optional<com.vaadin.flow.di.Instantiator> loadInstantiators()  
      protected com.vaadin.flow.server.VaadinSession loadSession​(com.vaadin.flow.server.WrappedSession wrappedSession)  
      protected void storeSession​(com.vaadin.flow.server.VaadinSession session, com.vaadin.flow.server.WrappedSession wrappedSession)  
      • 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, lockSession, modifyBootstrapPage, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
    • Constructor Detail

      • CdiVaadinServletService

        public CdiVaadinServletService​(CdiVaadinServlet 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
      • loadSession

        protected com.vaadin.flow.server.VaadinSession loadSession​(com.vaadin.flow.server.WrappedSession wrappedSession)
        Overrides:
        loadSession in class com.vaadin.flow.server.VaadinService
      • storeSession

        protected void storeSession​(com.vaadin.flow.server.VaadinSession session,
                                    com.vaadin.flow.server.WrappedSession wrappedSession)
        Overrides:
        storeSession 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 CdiVaadinServlet getServlet()
        Overrides:
        getServlet in class com.vaadin.flow.server.VaadinServletService