Uses of Class
com.vaadin.flow.server.VaadinService
-
Uses of VaadinService in com.vaadin.base.devserver
Methods in com.vaadin.base.devserver with parameters of type VaadinServiceModifier and TypeMethodDescriptionBrowserLiveReloadAccessorImpl.getLiveReload
(VaadinService service) -
Uses of VaadinService in com.vaadin.collaborationengine
Methods in com.vaadin.collaborationengine with parameters of type VaadinServiceModifier and TypeMethodDescriptionstatic CollaborationEngine
CollaborationEngine.configure
(VaadinService vaadinService, CollaborationEngineConfiguration configuration) Sets the configuration for the Collaboration Engine associated with the given Vaadin service.
static CollaborationEngine
CollaborationEngine.getInstance
(VaadinService vaadinService) Gets the
CollaborationEngine
instance from the providedVaadinService
.Method parameters in com.vaadin.collaborationengine with type arguments of type VaadinServiceModifier and TypeMethodDescriptionstatic void
CollaborationEngineServiceInitListener.addReinitializer
(Consumer<VaadinService> reinitializer) -
Uses of VaadinService in com.vaadin.flow.component
Methods in com.vaadin.flow.component with parameters of type VaadinServiceModifier and TypeMethodDescriptionComponentUtil.getDependencies
(VaadinService service, Class<? extends Component> componentClass) Gets the dependencies for the given class, defined using annotations (
JavaScript
,StyleSheet
andUses
). -
Uses of VaadinService in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal with parameters of type VaadinServiceModifier and TypeMethodDescriptionComponentMetaData.getDependencyInfo
(VaadinService service) Gets the dependencies, defined using annotations (
JsModule
,JavaScript
,StyleSheet
andUses
). -
Uses of VaadinService in com.vaadin.flow.component.littemplate
Methods in com.vaadin.flow.component.littemplate with parameters of type VaadinServiceModifier and TypeMethodDescriptionLitTemplateParser.getTemplateContent
(Class<? extends LitTemplate> clazz, String tag, VaadinService service) Gets the template data which contains a JSOUP
Element
representing the template content and the template uri.Constructors in com.vaadin.flow.component.littemplate with parameters of type VaadinServiceModifierConstructorDescriptionprotected
LitTemplate
(LitTemplateParser parser, VaadinService service) Creates the component component mapped to a LitElement using the provided
parser
andservice
.LitTemplateInitializer
(LitTemplate template, VaadinService service) Creates a new initializer instance.
-
Uses of VaadinService in com.vaadin.flow.component.littemplate.internal
Methods in com.vaadin.flow.component.littemplate.internal with parameters of type VaadinServiceModifier and TypeMethodDescriptionprotected String
LitTemplateParserImpl.getSourcesFromTemplate
(VaadinService service, String tag, String url) Finds the JavaScript sources for given tag.
LitTemplateParserImpl.getTemplateContent
(Class<? extends LitTemplate> clazz, String tag, VaadinService service) -
Uses of VaadinService in com.vaadin.flow.di
Methods in com.vaadin.flow.di with parameters of type VaadinServiceModifier and TypeMethodDescriptionInstantiatorFactory.createInstantitor
(VaadinService service) Create an
Instantiator
using the providedservice
.Constructors in com.vaadin.flow.di with parameters of type VaadinServiceModifierConstructorDescriptionDefaultInstantiator
(VaadinService service) Creates a new instantiator for the given service.
-
Uses of VaadinService in com.vaadin.flow.hotswap
Methods in com.vaadin.flow.hotswap that return VaadinServiceMethods in com.vaadin.flow.hotswap with parameters of type VaadinServiceModifier and TypeMethodDescriptiondefault boolean
VaadinHotswapper.onClassLoadEvent
(VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) Called by Vaadin hotswap entry point when one or more application classes have been updated.
static Optional<Hotswapper>
Hotswapper.register
(VaadinService vaadinService) Register the hotwsapper entry point for the given
VaadinService
.Constructors in com.vaadin.flow.hotswap with parameters of type VaadinServiceModifierConstructorDescriptionHotswapCompleteEvent
(VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) -
Uses of VaadinService in com.vaadin.flow.internal
Methods in com.vaadin.flow.internal with parameters of type VaadinServiceModifier and TypeMethodDescriptionstatic Optional<DevModeHandler>
DevModeHandlerManager.getDevModeHandler
(VaadinService service) Gets the
DevModeHandler
.BrowserLiveReloadAccess.getLiveReload
(VaadinService service) Deprecated.
Returns a
BrowserLiveReload
instance for the givenservice
.default BrowserLiveReload
BrowserLiveReloadAccessor.getLiveReload
(VaadinService service) Returns a
BrowserLiveReload
instance for the givenservice
.static Optional<BrowserLiveReload>
BrowserLiveReloadAccessor.getLiveReloadFromService
(VaadinService service) Create a
BrowserLiveReload
if factory available.boolean
ReflectionCacheHotswapper.onClassLoadEvent
(VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) -
Uses of VaadinService in com.vaadin.flow.router.internal
Methods in com.vaadin.flow.router.internal with parameters of type VaadinServiceModifier and TypeMethodDescriptionstatic void
RouteUtil.checkForClientRouteCollisions
(VaadinService service, String... flowRouteTemplates) Checks the given array of Flow route templates for potential collisions with Hilla routes.
static void
RouteUtil.checkForClientRouteCollisions
(VaadinService service, List<RouteData> flowRoutes) Checks the given list of Flow routes for potential collisions with Hilla routes.
boolean
RouteRegistryHotswapper.onClassLoadEvent
(VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) Updates both application registry, to reflect provided class changes.
-
Uses of VaadinService in com.vaadin.flow.server
Subclasses of VaadinService in com.vaadin.flow.serverMethods in com.vaadin.flow.server that return VaadinServiceModifier and TypeMethodDescriptionstatic VaadinService
VaadinService.getCurrent()
Gets the currently used Vaadin service.
BootstrapHandler.BootstrapContext.getService()
Gets the Vaadin service.
SessionDestroyEvent.getService()
Gets the Vaadin service from which the even originates.
SessionInitEvent.getService()
Gets the Vaadin service from which this event originates.
SystemMessagesInfo.getService()
Returns the service this SystemMessages request comes from.
VaadinRequest.getService()
Gets the vaadin service for the context of this request.
VaadinResponse.getService()
Gets the vaadin service for the context of this response.
VaadinSession.getService()
ServiceDestroyEvent.getSource()
ServiceInitEvent.getSource()
SessionDestroyEvent.getSource()
SessionInitEvent.getSource()
UIInitEvent.getSource()
Methods in com.vaadin.flow.server with parameters of type VaadinServiceModifier and TypeMethodDescriptionvoid
InlineTargets.addInlineDependency
(Inline inline, VaadinService service) Inline contents from classpath file to head of initial page.
StaticFileHandlerFactory.createHandler
(VaadinService service) Creates a new instance of
StaticFileHandler
for the givenservice
.protected StaticFileHandler
VaadinServlet.createStaticFileHandler
(VaadinService vaadinService) Creates a new instance of
StaticFileHandler
, that is responsible to find and serve static resources.DependencyFilter.filter
(List<Dependency> dependencies, VaadinService service) Filters the list of dependencies and returns a (possibly) updated version.
protected static boolean
VaadinSession.hasLock
(VaadinService service, WrappedSession session) Checks if the current thread has exclusive access to the given WrappedSession.
void
VaadinSession.refreshTransients
(WrappedSession wrappedSession, VaadinService vaadinService) Refreshes the transient fields of the session to ensure they are up to date.
static void
VaadinService.setCurrent
(VaadinService service) Sets the given Vaadin service as the current service.
protected static void
BootstrapHandler.setupPwa
(org.jsoup.nodes.Document document, VaadinService service) Constructors in com.vaadin.flow.server with parameters of type VaadinServiceModifierConstructorDescriptionServiceDestroyEvent
(VaadinService service) Creates a new event for the given service.
ServiceInitEvent
(VaadinService service) Creates a new service init event for a given
VaadinService
and theRequestHandler
that will be used by the service.SessionDestroyEvent
(VaadinService service, VaadinSession session) Creates a new event.
SessionInitEvent
(VaadinService service, VaadinSession session, VaadinRequest request) Creates a new event.
StaticFileServer
(VaadinService vaadinService) Constructs a file server.
SystemMessagesInfo
(Locale locale, VaadinRequest request, VaadinService service) Creates an instance based on the given locale, request and service.
UIInitEvent
(UI ui, VaadinService service) Constructs a prototypical Event.
VaadinSession
(VaadinService service) Creates a new VaadinSession tied to a VaadinService.
-
Uses of VaadinService in com.vaadin.flow.server.auth
Methods in com.vaadin.flow.server.auth with parameters of type VaadinServiceModifier and TypeMethodDescriptionNavigationAccessControl.createNavigationContext
(Class<?> navigationTarget, String path, VaadinService vaadinService, VaadinRequest vaadinRequest) Creates a new
NavigationContext
instance based on the given route data and Vaadin service and request.ViewAccessChecker.createNavigationContext
(Class<?> navigationTarget, String path, VaadinService vaadinService, VaadinRequest vaadinRequest) Deprecated, for removal: This API element is subject to removal in a future version.
Creates a new
NavigationContext
instance based on the given route data and Vaadin service and request. -
Uses of VaadinService in com.vaadin.flow.server.communication
Methods in com.vaadin.flow.server.communication that return VaadinServiceModifier and TypeMethodDescriptionUidlWriter.ResolveContext.getService()
Gets the related Vaadin service.
Constructors in com.vaadin.flow.server.communication with parameters of type VaadinServiceModifierConstructorDescriptionResolveContext
(VaadinService service, WebBrowser browser) Creates a new context.
-
Uses of VaadinService in com.vaadin.flow.server.dau
Methods in com.vaadin.flow.server.dau with parameters of type VaadinServiceModifier and TypeMethodDescriptionstatic boolean
DAUUtils.isDauEnabled
(VaadinService service) Checks if Daily Active User integration is enabled for the application.
static DAUUtils.EnforcementResult
DAUUtils.trackDAU
(VaadinService defaultVaadinService, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Track DAU and check if enforcement should apply to the given request.
-
Uses of VaadinService in com.vaadin.flow.server.frontend
Methods in com.vaadin.flow.server.frontend with parameters of type VaadinServiceModifier and TypeMethodDescriptionstatic InputStream
FrontendUtils.getFrontendFileFromDevModeHandler
(VaadinService service, String path) Get the contents of a frontend file from the running dev server.
static String
FrontendUtils.getIndexHtmlContent
(VaadinService service) Gets the content of the
frontend/index.html
file which is served by vite in dev-mode and read from classpath in production mode.static String
FrontendUtils.getWebComponentHtmlContent
(VaadinService service) Gets the content of the
frontend/web-component.html
file which is served by vite in dev-mode and read from classpath in production mode. -
Uses of VaadinService in com.vaadin.flow.spring
Subclasses of VaadinService in com.vaadin.flow.springModifier and TypeClassDescriptionclass
Spring application context aware Vaadin servlet service implementation.
Constructors in com.vaadin.flow.spring with parameters of type VaadinServiceModifierConstructorDescriptionSpringInstantiator
(VaadinService service, org.springframework.context.ApplicationContext context) Creates a new spring instantiator instance.
SpringVaadinSession
(VaadinService service) Deprecated, for removal: This API element is subject to removal in a future version.
Creates a new SpringVaadinSession tied to a VaadinService.
-
Uses of VaadinService in com.vaadin.flow.spring.security
Constructors in com.vaadin.flow.spring.security with parameters of type VaadinServiceModifierConstructorDescriptionWebIconsRequestMatcher
(VaadinService service, String urlMapping) Creates a new WebIconsRequestMatcher.
-
Uses of VaadinService in com.vaadin.hilla
Methods in com.vaadin.hilla with parameters of type VaadinServiceModifier and TypeMethodDescriptionboolean
Hotswapper.onClassLoadEvent
(VaadinService vaadinService, Set<Class<?>> classes, boolean redefined) static void
HillaStats.reportGenericHasFeatures
(VaadinService service, boolean hasHillaFsRoute) -
Uses of VaadinService in com.vaadin.testbench.unit.mocks
Subclasses of VaadinService in com.vaadin.testbench.unit.mocksModifier and TypeClassDescriptionclass
A mocking service that performs three very important tasks: Overrides
MockSpringServletService.isAtmosphereAvailable()
to tell Vaadin that we don't have Atmosphere (otherwise Vaadin will crash) Provides some dummy value as a root ID viaMockSpringServletService.getMainDivId(com.vaadin.flow.server.VaadinSession, com.vaadin.flow.server.VaadinRequest)
(otherwise the mocked servlet env will crash). Provides aMockSpringVaadinSession
instead ofSpringVaadinSession
. The class is intentionally opened, to be extensible in user's library.Constructors in com.vaadin.testbench.unit.mocks with parameters of type VaadinServiceModifierConstructorDescriptionMockSpringVaadinSession
(VaadinService service, kotlin.jvm.functions.Function0<UI> uiFactory)