com.vaadin.flow.server.startup.

Class ServletDeployer


  • public class ServletDeployer
    extends Object

    Context listener that automatically registers a Vaadin servlet. The servlet is only registered if all of the following conditions apply:

    • At least one class annotated with @Route is found on the classpath
    • No servlet is registered for /*
    • No Vaadin servlet is registered

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Constructor Detail

      • ServletDeployer

        public ServletDeployer()
    • Method Detail

      • contextInitialized

        public void contextInitialized(ServletContextEvent sce)
      • contextDestroyed

        public void contextDestroyed(ServletContextEvent sce)