Package com.vaadin.cdi
Class CdiVaadinServletService
- java.lang.Object
-
- com.vaadin.flow.server.VaadinService
-
- com.vaadin.flow.server.VaadinServletService
-
- com.vaadin.cdi.CdiVaadinServletService
-
- All Implemented Interfaces:
Serializable
public class CdiVaadinServletService extends com.vaadin.flow.server.VaadinServletServiceServlet service implementation for Vaadin CDI.This class creates and initializes a @
VaadinServiceEnabledInstantiator.Some @
VaadinServiceEnabledbeans can be used to customize Vaadin, they are also created, and bound if found.SystemMessagesProvideris bound to service byVaadinService.setSystemMessagesProvider(SystemMessagesProvider).ErrorHandleris bound to created sessions byVaadinSession.setErrorHandler(ErrorHandler).
- See Also:
CdiVaadinServlet, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCdiVaadinServletService.CdiVaadinServiceDelegateThis class implements the actual instantiation and event brokering functionality ofCdiVaadinServletService.
-
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 voidfireUIInitListeners(com.vaadin.flow.component.UI ui)CdiVaadinServletgetServlet()voidinit()Optional<com.vaadin.flow.di.Instantiator>loadInstantiators()protected com.vaadin.flow.server.VaadinSessionloadSession(com.vaadin.flow.server.WrappedSession wrappedSession)protected voidstoreSession(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:
initin classcom.vaadin.flow.server.VaadinServletService- Throws:
com.vaadin.flow.server.ServiceException
-
fireUIInitListeners
public void fireUIInitListeners(com.vaadin.flow.component.UI ui)
- Overrides:
fireUIInitListenersin classcom.vaadin.flow.server.VaadinService
-
loadSession
protected com.vaadin.flow.server.VaadinSession loadSession(com.vaadin.flow.server.WrappedSession wrappedSession)
- Overrides:
loadSessionin classcom.vaadin.flow.server.VaadinService
-
storeSession
protected void storeSession(com.vaadin.flow.server.VaadinSession session, com.vaadin.flow.server.WrappedSession wrappedSession)- Overrides:
storeSessionin classcom.vaadin.flow.server.VaadinService
-
loadInstantiators
public Optional<com.vaadin.flow.di.Instantiator> loadInstantiators() throws com.vaadin.flow.server.ServiceException
- Overrides:
loadInstantiatorsin classcom.vaadin.flow.server.VaadinService- Throws:
com.vaadin.flow.server.ServiceException
-
getServlet
public CdiVaadinServlet getServlet()
- Overrides:
getServletin classcom.vaadin.flow.server.VaadinServletService
-
-