com.vaadin.flow.server.startup.
Interface VaadinServletContextStartupInitializer
All Superinterfaces:
ClassLoaderAwareServletContainerInitializer
, jakarta.servlet.ServletContainerInitializer
, VaadinContextStartupInitializer
All Known Implementing Classes:
AnnotationValidator
, DevModeStartupListener
, ErrorNavigationTargetInitializer
, RouteRegistryInitializer
, VaadinAppShellInitializer
, WebComponentConfigurationRegistryInitializer
, WebComponentExporterAwareValidator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Allows a library/runtime to be notified of a web application's startup phase and perform any required programmatic registration of servlets, filters, and listeners in response to it.
Since:
See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Implement this method instead of
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.Methods inherited from interface com.vaadin.flow.server.startup.ClassLoaderAwareServletContainerInitializer
onStartup, requiresLookup
Methods inherited from interface com.vaadin.flow.server.startup.VaadinContextStartupInitializer
initialize
-
Method Details
-
process
default void process(Set<Class<?>> classSet, jakarta.servlet.ServletContext context) throws jakarta.servlet.ServletException Description copied from interface:
ClassLoaderAwareServletContainerInitializer
Implement this method instead of
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.Specified by:
process
in interfaceClassLoaderAwareServletContainerInitializer
Parameters:
classSet
- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypes
annotation, ornull
if there are no matches, or thisServletContainerInitializer
has not been annotated withHandlesTypes
context
- theServletContext
of the web application that is being started and in which the classes contained inclassSet
were foundThrows:
jakarta.servlet.ServletException
- if an error has occurredSee Also:
-