Uses of Interface
com.vaadin.flow.server.VaadinContext
Packages that use VaadinContext
Package
Description
-
Uses of VaadinContext in com.vaadin.base.devserver
Methods in com.vaadin.base.devserver with parameters of type VaadinContextModifier and TypeMethodDescriptionBrowserLiveReloadAccessorImpl.getLiveReload
(VaadinContext context) void
DevModeHandlerManagerImpl.initDevModeHandler
(Set<Class<?>> classes, VaadinContext context) static boolean
DevModeHandlerManagerImpl.isDevModeAlreadyStarted
(VaadinContext context) Shows whetherDevModeHandler
has been already started or not.Constructors in com.vaadin.base.devserver with parameters of type VaadinContextModifierConstructorDescriptionBrowserLauncher
(VaadinContext context) Init a launcher for the given context.ExternalDependencyWatcher
(VaadinContext context, File jarFrontendResourcesFolder) ThemeLiveUpdater
(File themeFolder, VaadinContext context) Starts watching the given theme folder (containing styles.css). -
Uses of VaadinContext in com.vaadin.base.devserver.startup
Methods in com.vaadin.base.devserver.startup with parameters of type VaadinContextModifier and TypeMethodDescriptionstatic DevModeHandler
DevModeInitializer.initDevModeHandler
(Set<Class<?>> classes, VaadinContext context) Deprecated, for removal: This API element is subject to removal in a future version.static DevModeHandler
DevModeInitializer.initDevModeHandler
(Set<Class<?>> classes, VaadinContext context, Executor taskExecutor) Initialize the devmode server if not in production mode or compatibility mode.void
DevModeStartupListener.initialize
(Set<Class<?>> classes, VaadinContext context) -
Uses of VaadinContext in com.vaadin.base.devserver.viteproxy
Methods in com.vaadin.base.devserver.viteproxy with parameters of type VaadinContextModifier and TypeMethodDescriptionstatic void
ViteWebsocketEndpoint.init
(VaadinContext context, ViteHandler viteHandler) Creates the websocket endpoint that Vite connects to. -
Uses of VaadinContext in com.vaadin.experimental
Methods in com.vaadin.experimental with parameters of type VaadinContextModifier and TypeMethodDescriptionstatic FeatureFlags
FeatureFlags.get
(VaadinContext context) Gets the FeatureFlags for the given Vaadin context. -
Uses of VaadinContext in com.vaadin.flow.di
Methods in com.vaadin.flow.di with parameters of type VaadinContextModifier and TypeMethodDescriptionprotected Lookup
LookupInitializer.createLookup
(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services) Creates a lookup based on providedservices
.void
AbstractLookupInitializer.initialize
(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services, VaadinApplicationInitializationBootstrap bootstrap) Creates a newLookup
instance, initializes it and passes it to the providedbootstrap
.void
LookupInitializer.initialize
(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services, VaadinApplicationInitializationBootstrap bootstrap) -
Uses of VaadinContext in com.vaadin.flow.internal
Methods in com.vaadin.flow.internal with parameters of type VaadinContextModifier and TypeMethodDescriptionstatic Optional<DevModeHandler>
DevModeHandlerManager.getDevModeHandler
(VaadinContext context) Gets theDevModeHandler
.BrowserLiveReloadAccessor.getLiveReload
(VaadinContext context) Returns aBrowserLiveReload
instance for the givencontext
.static Optional<BrowserLiveReload>
BrowserLiveReloadAccessor.getLiveReloadFromContext
(VaadinContext context) Create aBrowserLiveReload
if factory available.void
DevModeHandlerManager.initDevModeHandler
(Set<Class<?>> classes, VaadinContext context) Starts up a newDevModeHandler
.void
VaadinContextInitializer.initialize
(VaadinContext context) Initializes the Vaadincontext
. -
Uses of VaadinContext in com.vaadin.flow.router.internal
Methods in com.vaadin.flow.router.internal with parameters of type VaadinContextModifier and TypeMethodDescriptionstatic List<Class<? extends RouterLayout>>
RouteUtil.getParentLayouts
(VaadinContext context, Class<?> component, String path) Get parent layouts for navigation target according to theRoute
orRouteAlias
annotation.static String
RouteUtil.getRoutePath
(VaadinContext context, Class<?> component) Get the actual route path including all parent layoutRoutePrefix
.static Class<? extends RouterLayout>
RouteUtil.getTopParentLayout
(VaadinContext context, Class<?> component, String path) Get the top most parent layout for navigation target according to theRoute
orRouteAlias
annotation.static String
RouteUtil.resolve
(VaadinContext context, Class<?> component) Gets the effective route path value of the annotated class. -
Uses of VaadinContext in com.vaadin.flow.server
Classes in com.vaadin.flow.server that implement VaadinContextMethods in com.vaadin.flow.server that return VaadinContextModifier and TypeMethodDescriptionprotected abstract VaadinContext
VaadinService.constructVaadinContext()
ConstructsVaadinContext
for this service.protected VaadinContext
VaadinServletService.constructVaadinContext()
RouteRegistry.getContext()
Gets the Vaadin context which the registry belongs to.SessionRouteRegistry.getContext()
VaadinService.getContext()
ReturnsVaadinContext
for this service.VaadinConfig.getVaadinContext()
Get the VaadinContext for this configuration.VaadinServletConfig.getVaadinContext()
Methods in com.vaadin.flow.server with parameters of type VaadinContextModifier and TypeMethodDescriptionstatic AppShellRegistry
AppShellRegistry.getInstance
(VaadinContext context) Returns the instance of the registry, or create a new one if it does not exist yet.protected static Collection<String>
BootstrapHandler.getStylesheetLinks
(VaadinContext context, String fileName) Gives a links for referencing the custom theme stylesheet files (typically styles.css or document.css), which are served in express build mode by static file server directly from frontend/themes folder.protected static Collection<org.jsoup.nodes.Element>
BootstrapHandler.getStylesheetTags
(VaadinContext context, String fileName) Gives link tags for referencing the custom theme stylesheet files (typically styles.css or document.css), which are served in express build mode by static file server directly from frontend/themes folder.static boolean
ErrorHandlerUtil.handleErrorByRedirectingToErrorView
(Exception exception, VaadinContext context, UI ui) Check if matching error handler target exists for exception and redraw view using ErrorTarget.static boolean
ErrorHandlerUtil.handleErrorByRedirectingToErrorView
(Throwable throwable, VaadinContext context, UI ui) Check throwable is Exception and redraw error view if matching error handler target exists. -
Uses of VaadinContext in com.vaadin.flow.server.frontend
Methods in com.vaadin.flow.server.frontend with parameters of type VaadinContextModifier and TypeMethodDescriptionThemeUtils.getActiveThemes
(VaadinContext context) Gets the active themes in parent to child order, starting from the application theme.ThemeUtils.getThemeAnnotation
(VaadinContext context) Gets the theme annotation for the project.ThemeUtils.getThemeName
(VaadinContext context) Gets the custom theme name if the custom theme is used in the project. -
Uses of VaadinContext in com.vaadin.flow.server.startup
Methods in com.vaadin.flow.server.startup that return VaadinContextModifier and TypeMethodDescriptionApplicationConfiguration.getContext()
The context which the configuration is based on.ApplicationRouteRegistry.getContext()
DefaultApplicationConfigurationFactory.ApplicationConfigurationImpl.getContext()
Methods in com.vaadin.flow.server.startup with parameters of type VaadinContextModifier and TypeMethodDescriptionApplicationConfigurationFactory.create
(VaadinContext context) Creates a new instance ofApplicationConfiguration
for the givencontext
.DefaultApplicationConfigurationFactory.create
(VaadinContext context) DefaultApplicationConfigurationFactory.doCreate
(VaadinContext context, Map<String, String> properties) Creates application configuration instance based on provided data.static ApplicationConfiguration
ApplicationConfiguration.get
(VaadinContext context) Gets a configuration instance for the given {code context}.static ApplicationRouteRegistry
ApplicationRouteRegistry.getInstance
(VaadinContext context) Gets the route registry for the given Vaadin context.protected String
DefaultApplicationConfigurationFactory.getTokenFileFromClassloader
(VaadinContext context) Gets token file from the classpath using the providedcontext
.static void
VaadinAppShellInitializer.init
(Set<Class<?>> classes, VaadinContext context) Initializes theAppShellRegistry
for the application.void
AnnotationValidator.initialize
(Set<Class<?>> classes, VaadinContext context) void
ErrorNavigationTargetInitializer.initialize
(Set<Class<?>> classSet, VaadinContext context) void
RouteRegistryInitializer.initialize
(Set<Class<?>> classSet, VaadinContext context) void
VaadinAppShellInitializer.initialize
(Set<Class<?>> classes, VaadinContext context) void
VaadinContextStartupInitializer.initialize
(Set<Class<?>> classSet, VaadinContext context) Applies this initializer to the given contextvoid
WebComponentConfigurationRegistryInitializer.initialize
(Set<Class<?>> classSet, VaadinContext context) void
WebComponentExporterAwareValidator.initialize
(Set<Class<?>> classSet, VaadinContext context) protected Class<?>
AbstractRouteRegistryInitializer.validatePwaClass
(VaadinContext context, Stream<Class<?>> routeClasses) Validate PWA annotations of the potential route classes stream, search for properly annotated PWA class and return it, or null if none existing.AbstractRouteRegistryInitializer.validateRouteClasses
(VaadinContext context, Stream<Class<?>> routeClasses) Validate the potential route classes stream and return them as a set.Constructors in com.vaadin.flow.server.startup with parameters of type VaadinContextModifierConstructorDescriptionprotected
ApplicationConfigurationImpl
(VaadinContext context, Map<String, String> properties) protected
ApplicationRouteRegistry
(VaadinContext context) Creates a new uninitialized route registry. -
Uses of VaadinContext in com.vaadin.flow.server.webcomponent
Methods in com.vaadin.flow.server.webcomponent with parameters of type VaadinContextModifier and TypeMethodDescriptionWebComponentConfigurationRegistry.getInstance
(VaadinContext context) Get WebComponentRegistry instance for given servlet context. -
Uses of VaadinContext in com.vaadin.flow.spring
Methods in com.vaadin.flow.spring with parameters of type VaadinContextModifier and TypeMethodDescriptionprotected Lookup
SpringLookupInitializer.createLookup
(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services) SpringApplicationConfigurationFactory.doCreate
(VaadinContext context, Map<String, String> properties) void
SpringLookupInitializer.initialize
(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services, VaadinApplicationInitializationBootstrap bootstrap) -
Uses of VaadinContext in com.vaadin.hilla
Constructors in com.vaadin.hilla with parameters of type VaadinContextModifierConstructorDescriptionEndpointCodeGenerator
(VaadinContext context, EndpointController endpointController) Creates the singleton. -
Uses of VaadinContext in com.vaadin.testbench.unit
Methods in com.vaadin.testbench.unit with parameters of type VaadinContextModifier and TypeMethodDescriptionvoid
UITestSpringLookupInitializer.initialize
(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services, VaadinApplicationInitializationBootstrap bootstrap)
DevModeInitializer.initDevModeHandler(Set, VaadinContext, Executor)
providing a custom executor.