com.vaadin.flow.server.startup.

Class DevModeInitializer

  • All Implemented Interfaces:

    Serializable


    public class DevModeInitializer
    extends Object
    implements Serializable

    Servlet initializer starting node updaters as well as the webpack-dev-mode server.

    Since:

    2.0

    See Also:

    Serialized Form

    • Constructor Detail

      • DevModeInitializer

        public DevModeInitializer()
    • Method Detail

      • onStartup

        public void onStartup(Set<Class<?>> classes,
                              ServletContext context)
                       throws ServletException

        Throws:

        ServletException

      • initDevModeHandler

        public static void initDevModeHandler(Set<Class<?>> classes,
                                              ServletContext context,
                                              DeploymentConfiguration config)
                                       throws ServletException

        Initialize the devmode server if not in production mode or compatibility mode.

        Parameters:

        classes - classes to check for npm- and js modules

        context - servlet context we are running in

        config - deployment configuration

        Throws:

        ServletException - if dev mode can't be initialized

      • contextInitialized

        public void contextInitialized(ServletContextEvent ctx)
      • contextDestroyed

        public void contextDestroyed(ServletContextEvent ctx)