public interface ClassLoaderAwareServletContainerInitializer
extends javax.servlet.ServletContainerInitializer
onStartup(Set, ServletContext)
method loaded by another
classloader.
Workaround for https://github.com/vaadin/flow/issues/7805.
Modifier and Type | Method and Description |
---|---|
default void |
onStartup(Set<Class<?>> set,
javax.servlet.ServletContext ctx)
Overridden to use different classloaders if needed.
|
void |
process(Set<Class<?>> set,
javax.servlet.ServletContext ctx)
Implement this method instead of
onStartup(Set, ServletContext)
to handle classes accessible by different classloaders. |
default void onStartup(Set<Class<?>> set, javax.servlet.ServletContext ctx) throws javax.servlet.ServletException
onStartup
in interface javax.servlet.ServletContainerInitializer
javax.servlet.ServletException
void process(Set<Class<?>> set, javax.servlet.ServletContext ctx) throws javax.servlet.ServletException
onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.set
- the Set of application classes that extend, implement, or have
been annotated with the class types specified by the
HandlesTypes
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 foundjavax.servlet.ServletException
- if an error has occurredonStartup(Set, ServletContext)
Copyright © 2000–2020 Vaadin Ltd. All rights reserved.