com.vaadin.flow.server.startup.
Interface ClassLoaderAwareServletContainerInitializer
-
All Known Implementing Classes:
AnnotationValidator, ConnectEndpointsValidator, DevModeInitializer, ErrorNavigationTargetInitializer, RouteRegistryInitializer, ServletVerifier, VaadinAppShellInitializer, WebComponentConfigurationRegistryInitializer, WebComponentExporterAwareValidator
public interface ClassLoaderAwareServletContainerInitializer
Allows to load the implementation class by one classloader but accepts classes in
onStartup(Set, ServletContext)
method loaded by another classloader.Workaround for https://github.com/vaadin/flow/issues/7805.
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method and Description default void
onStartup(Set<Class<?>> set, ServletContext ctx)
Overridden to use different classloaders if needed.
void
process(Set<Class<?>> set, ServletContext ctx)
Implement this method instead of
onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.
-
-
-
Method Detail
-
onStartup
default void onStartup(Set<Class<?>> set, ServletContext ctx) throws ServletException
Overridden to use different classloaders if needed.
Throws:
ServletException
-
process
void process(Set<Class<?>> set, ServletContext ctx) throws ServletException
Implement this method instead of
onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.Parameters:
set
- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypes
annotation, or null if there are no matches, or this ServletContainerInitializer has not been annotated with HandlesTypesctx
- the ServletContext of the web application that is being started and in which the classes contained in c were foundThrows:
ServletException
- if an error has occurredSee Also:
-
-