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.VaadinServletServiceAn implementation ofVaadinServicefor Quarkus environment. This class looks up for and therefore provides anInstantiatorbean. It also forwards Vaadin events to CDI listeners.- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QuarkusVaadinServletService(QuarkusVaadinServlet 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)QuarkusVaadinServletgetServlet()voidinit()Optional<com.vaadin.flow.di.Instantiator>loadInstantiators()<T> Optional<T>lookup(Class<T> type)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, 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, loadSession, lockSession, modifyBootstrapPage, modifyIndexHtmlResponse, readFromHttpSession, reinitializeSession, removeFromHttpSession, removeSession, requestEnd, requestStart, runPendingAccessTasks, setBootstrapInitialPredicate, setBootstrapUrlPredicate, setClassLoader, setCurrent, setCurrentInstances, setSystemMessagesProvider, storeSession, unlockSession, verifyNoOtherSessionLocked, writeStringResponse, writeToHttpSession, writeUncachedStringResponse
-
-
-
-
Constructor Detail
-
QuarkusVaadinServletService
public QuarkusVaadinServletService(QuarkusVaadinServlet 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
-
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 QuarkusVaadinServlet getServlet()
- Overrides:
getServletin classcom.vaadin.flow.server.VaadinServletService
-
lookup
public <T> Optional<T> lookup(Class<T> type) throws com.vaadin.flow.server.ServiceException
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.
-
-