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.- Since:
- 1.0
- 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) Creates a servlet service that takes Vaadin services from CDI beans and fires Vaadin events as CDI events. -
Method Summary
Methods inherited from class com.vaadin.flow.server.VaadinServletService
constructVaadinContext, createRequestHandlers, createSessionlessRequestHandlers, getContextRootRelativePath, getCurrentResponse, getCurrentServletRequest, getMainDivId, getMimeType, getPwaRegistry, getResource, getResourceAsStream, getResourceInServletContext, getRouteRegistry, getServiceName, getStaticResource, requestCanCreateSession, resolveResource, setDefaultClassLoaderMethods inherited from class com.vaadin.flow.server.VaadinService
accessSession, addRpcInvocationListener, addServiceDestroyListener, addSessionDestroyListener, addSessionInitListener, addSessionLockListener, addUIInitListener, applySessionLockCheckStrategy, closeSession, createCriticalNotificationJSON, createCriticalNotificationJSON, createDefaultObjectMapper, createInstantiator, createSessionExpiredJSON, createUINotFoundJSON, createVaadinRequestInterceptors, createVaadinSession, destroy, ensureAccessQueuePurged, ensurePushAvailable, findUI, findVaadinSession, fireSessionDestroy, fireUIInitListeners, getBootstrapInitialPredicate, getBootstrapUrlPredicate, getClassLoader, getContext, getCsrfTokenAttributeName, getCurrent, getCurrentOrThrow, getCurrentRequest, getDependencyFilters, getDeploymentConfiguration, getEventBus, getExecutor, getExistingSession, getInstantiator, getRequestHandlers, getRouter, getSessionAttributeName, getSessionlessRequestHandlers, getSessionLock, getSystemMessages, getSystemMessagesProvider, getVaadinRequestInterceptors, handleRequest, handleSessionExpired, isAtmosphereAvailable, isCsrfTokenValid, isInitialized, isOtherSessionLocked, isResourceAvailable, isUIActive, loadSession, lockSession, modifyIndexHtmlResponse, readFromHttpSession, recordRequestFailure, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, whenInitialized, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
-
Constructor Details
-
QuarkusVaadinServletService
public QuarkusVaadinServletService(QuarkusVaadinServlet servlet, com.vaadin.flow.function.DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager) Creates a servlet service that takes Vaadin services from CDI beans and fires Vaadin events as CDI events.- Parameters:
servlet- the servlet this service belongs toconfiguration- the deployment configurationbeanManager- the bean manager to look up beans and fire events with
-
-
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
-
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.
-