public class DevModeInitializer extends Object implements ClassLoaderAwareServletContainerInitializer, Serializable
| Constructor and Description |
|---|
DevModeInitializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(ServletContextEvent ctx) |
void |
contextInitialized(ServletContextEvent ctx) |
static void |
initDevModeHandler(Set<Class<?>> classes,
ServletContext context,
DeploymentConfiguration config)
Initialize the devmode server if not in production mode or compatibility
mode.
|
static boolean |
isDevModeAlreadyStarted(ServletContext servletContext)
Shows whether
DevModeHandler has been already started or not. |
void |
process(Set<Class<?>> classes,
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, waitonStartuppublic void process(Set<Class<?>> classes, ServletContext context) throws 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 foundServletException - if an error has occurredClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)public static void initDevModeHandler(Set<Class<?>> classes, ServletContext context, DeploymentConfiguration config) throws ServletException
classes - classes to check for npm- and js modulescontext - servlet context we are running inconfig - deployment configurationServletException - if dev mode can't be initializedpublic static boolean isDevModeAlreadyStarted(ServletContext servletContext)
DevModeHandler has been already started or not.servletContext - The servlet context, not nulltrue if DevModeHandler has already been
started, false - otherwisepublic void contextInitialized(ServletContextEvent ctx)
public void contextDestroyed(ServletContextEvent ctx)
Copyright © 2020. All rights reserved.