Package com.vaadin.flow.server.startup
Interface VaadinServletContextStartupInitializer
- All Superinterfaces:
ClassLoaderAwareServletContainerInitializer,jakarta.servlet.ServletContainerInitializer,VaadinContextStartupInitializer
- All Known Implementing Classes:
AnnotationValidator,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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidImplement 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, requiresLookupMethods 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:ClassLoaderAwareServletContainerInitializerImplement this method instead ofClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)to handle classes accessible by different classloaders.- Specified by:
processin interfaceClassLoaderAwareServletContainerInitializer- Parameters:
classSet- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypesannotation, ornullif there are no matches, or thisServletContainerInitializerhas not been annotated withHandlesTypescontext- theServletContextof the web application that is being started and in which the classes contained inclassSetwere found- Throws:
jakarta.servlet.ServletException- if an error has occurred- See Also:
-