com.vaadin.flow.server.startup.
Interface VaadinServletContextStartupInitializer
-
All Superinterfaces:
ClassLoaderAwareServletContainerInitializer
,javax.servlet.ServletContainerInitializer
,VaadinContextStartupInitializer
All Known Implementing Classes:
AnnotationValidator
,DevModeStartupListener
,ErrorNavigationTargetInitializer
,RouteRegistryInitializer
,ServletVerifier
,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
All Methods Modifier and Type Method Description default void
process​(Set<Class<?>> classSet, javax.servlet.ServletContext context)
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 Detail
-
process
default void process​(Set<Class<?>> classSet, javax.servlet.ServletContext context) throws javax.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:
javax.servlet.ServletException
- if an error has occurredSee Also:
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
-
-