Package 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.
@FunctionalInterface
public interface VaadinServletContextStartupInitializer
extends ClassLoaderAwareServletContainerInitializer, VaadinContextStartupInitializer
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 ofClassLoaderAwareServletContainerInitializer.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 ofClassLoaderAwareServletContainerInitializer.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 found- Throws:
jakarta.servlet.ServletException
- if an error has occurred- See Also:
-