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) voidDevModeHandlerManagerImpl.initDevModeHandler(Set<Class<?>> classes, VaadinContext context) static booleanDevModeHandlerManagerImpl.isDevModeAlreadyStarted(VaadinContext context) Shows whetherDevModeHandlerhas 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 DevModeHandlerDevModeInitializer.initDevModeHandler(Set<Class<?>> classes, VaadinContext context) Deprecated, for removal: This API element is subject to removal in a future version.static DevModeHandlerDevModeInitializer.initDevModeHandler(Set<Class<?>> classes, VaadinContext context, Executor taskExecutor) Initialize the devmode server if not in production mode or compatibility mode.voidDevModeStartupListener.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 voidViteWebsocketEndpoint.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 FeatureFlagsFeatureFlags.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 LookupLookupInitializer.createLookup(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services) Creates a lookup based on providedservices.voidAbstractLookupInitializer.initialize(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services, VaadinApplicationInitializationBootstrap bootstrap) Creates a newLookupinstance, initializes it and passes it to the providedbootstrap.voidLookupInitializer.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 aBrowserLiveReloadinstance for the givencontext.static Optional<BrowserLiveReload>BrowserLiveReloadAccessor.getLiveReloadFromContext(VaadinContext context) Create aBrowserLiveReloadif factory available.voidDevModeHandlerManager.initDevModeHandler(Set<Class<?>> classes, VaadinContext context) Starts up a newDevModeHandler.voidVaadinContextInitializer.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 theRouteorRouteAliasannotation.static StringRouteUtil.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 theRouteorRouteAliasannotation.static StringRouteUtil.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 VaadinContextVaadinService.constructVaadinContext()ConstructsVaadinContextfor this service.protected VaadinContextVaadinServletService.constructVaadinContext()RouteRegistry.getContext()Gets the Vaadin context which the registry belongs to.SessionRouteRegistry.getContext()VaadinService.getContext()ReturnsVaadinContextfor 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 AppShellRegistryAppShellRegistry.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 booleanErrorHandlerUtil.handleErrorByRedirectingToErrorView(Exception exception, VaadinContext context, UI ui) Check if matching error handler target exists for exception and redraw view using ErrorTarget.static booleanErrorHandlerUtil.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 ofApplicationConfigurationfor the givencontext.DefaultApplicationConfigurationFactory.create(VaadinContext context) DefaultApplicationConfigurationFactory.doCreate(VaadinContext context, Map<String, String> properties) Creates application configuration instance based on provided data.static ApplicationConfigurationApplicationConfiguration.get(VaadinContext context) Gets a configuration instance for the given {code context}.static ApplicationRouteRegistryApplicationRouteRegistry.getInstance(VaadinContext context) Gets the route registry for the given Vaadin context.protected StringDefaultApplicationConfigurationFactory.getTokenFileFromClassloader(VaadinContext context) Gets token file from the classpath using the providedcontext.static voidVaadinAppShellInitializer.init(Set<Class<?>> classes, VaadinContext context) Initializes theAppShellRegistryfor the application.voidAnnotationValidator.initialize(Set<Class<?>> classes, VaadinContext context) voidErrorNavigationTargetInitializer.initialize(Set<Class<?>> classSet, VaadinContext context) voidRouteRegistryInitializer.initialize(Set<Class<?>> classSet, VaadinContext context) voidVaadinAppShellInitializer.initialize(Set<Class<?>> classes, VaadinContext context) voidVaadinContextStartupInitializer.initialize(Set<Class<?>> classSet, VaadinContext context) Applies this initializer to the given contextvoidWebComponentConfigurationRegistryInitializer.initialize(Set<Class<?>> classSet, VaadinContext context) voidWebComponentExporterAwareValidator.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 VaadinContextModifierConstructorDescriptionprotectedApplicationConfigurationImpl(VaadinContext context, Map<String, String> properties) protectedApplicationRouteRegistry(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 LookupSpringLookupInitializer.createLookup(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services) SpringApplicationConfigurationFactory.doCreate(VaadinContext context, Map<String, String> properties) voidSpringLookupInitializer.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 TypeMethodDescriptionvoidUITestSpringLookupInitializer.initialize(VaadinContext context, Map<Class<?>, Collection<Class<?>>> services, VaadinApplicationInitializationBootstrap bootstrap)
DevModeInitializer.initDevModeHandler(Set, VaadinContext, Executor)providing a custom executor.