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.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.
SystemMessagesProvideris bound to service byVaadinService.setSystemMessagesProvider(SystemMessagesProvider).ErrorHandleris bound to created sessions byVaadinSession.setErrorHandler(ErrorHandler).
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class implements the actual instantiation and event brokering functionality ofCdiVaadinServletService. -
Field Summary
Fields inherited from class com.vaadin.flow.server.VaadinService
ATMOSPHERE_MISSING_ERROR, INVALID_ATMOSPHERE_VERSION_WARNING -
Constructor Summary
ConstructorsConstructorDescriptionCdiVaadinServletService(CdiVaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExecutorvoidfireUIInitListeners(com.vaadin.flow.component.UI ui) voidinit()Optional<com.vaadin.flow.di.Instantiator>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, setDefaultClassLoaderMethods 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, lockSession, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
-
Constructor Details
-
CdiVaadinServletService
public CdiVaadinServletService(CdiVaadinServlet 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:
initin classcom.vaadin.flow.server.VaadinService- 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
-
createDefaultExecutor
- Overrides:
createDefaultExecutorin 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
- Overrides:
getServletin classcom.vaadin.flow.server.VaadinServletService
-