@WebListener public class DevModeInitializer extends Object implements ClassLoaderAwareServletContainerInitializer, Serializable, javax.servlet.ServletContextListener
For internal use only. May be renamed or removed in a future release.
| Constructor and Description |
|---|
DevModeInitializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent ctx) |
void |
contextInitialized(javax.servlet.ServletContextEvent ctx) |
static void |
initDevModeHandler(Set<Class<?>> classes,
javax.servlet.ServletContext context,
DeploymentConfiguration config)
Initialize the devmode server if not in production mode or compatibility
mode.
|
void |
process(Set<Class<?>> classes,
javax.servlet.ServletContext context)
Implement this method instead of
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonStartup, requiresLookuppublic void process(Set<Class<?>> classes, javax.servlet.ServletContext context) throws javax.servlet.ServletException
ClassLoaderAwareServletContainerInitializerClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.process in interface ClassLoaderAwareServletContainerInitializerclasses - 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 HandlesTypescontext - 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 occurredClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)public static void initDevModeHandler(Set<Class<?>> classes, javax.servlet.ServletContext context, DeploymentConfiguration config) throws javax.servlet.ServletException
classes - classes to check for npm- and js modulescontext - servlet context we are running inconfig - deployment configurationjavax.servlet.ServletException - if dev mode can't be initializedpublic void contextInitialized(javax.servlet.ServletContextEvent ctx)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent ctx)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2000–2026 Vaadin Ltd. All rights reserved.