Package com.vaadin.quarkus
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
ConstructorsConstructorDescriptionQuarkusVaadinServletService(QuarkusVaadinServlet 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> <T> Optional<T> Gets an instance of a@VaadinServiceEnabledannotated bean of the giventype.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, loadSession, lockSession, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
-
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:
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
-
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
-
lookup
Gets an instance of a@VaadinServiceEnabledannotated bean of the giventype.- Type Parameters:
T- the type of the service- Parameters:
type- the required service type- Returns:
- an
Optionalwrapping the service instance, orOptional.empty()if no bean definition exists for given type. - Throws:
com.vaadin.flow.server.ServiceException- if multiple beans exists for the given type.
-