Class DevModeStartupListener

java.lang.Object
com.levigo.jadice.web.server.DevModeStartupListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

@Deprecated public class DevModeStartupListener extends Object implements javax.servlet.ServletContextListener
Deprecated.
A ServletContextListener registering all standard server resources needed by Jadice Web Toolkit. This context listener can be used when registration via Servlet 3.0 annotations is not available - in particular in GWT's development mode using gwt-dev's built-in Jetty engine.

The resources are mapped into the servlet context's URL space as follows:

Jadice Web Toolkit's standard servlets and filters
URL Service Servlet class
/jwt/font/* The font download service FontDownloadServlet
jwt/transport/* The transport layer com.levigo.jadice.web.transport.server.TransportWebtoolkitFilter
/* GWT resource caching CacheFilter
/* GWT resource non-caching NoCacheFilter
Please note that the mappings above are identical to the ones specified by the annotations on the servlet and filter implementations.
  • Constructor Details

    • DevModeStartupListener

      public DevModeStartupListener()
      Deprecated.
  • Method Details

    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent sce)
      Deprecated.
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
    • registerServlet

      public static void registerServlet(javax.servlet.ServletContext servletContext, Class<?> servletClass)
      Deprecated.
      Registers a servlet.
      Parameters:
      servletContext - the ServletContext
      servletClass - class annotated with WebServlet
    • registerServlet

      public static void registerServlet(javax.servlet.ServletContext servletContext, String servletClassName)
      Deprecated.
      Registers a servlet.
      Parameters:
      servletContext - the ServletContext
      servletClassName - name of class annotated with WebServlet
    • registerFilter

      public static void registerFilter(javax.servlet.ServletContext servletContext, String filterClassName)
      Deprecated.
      Registers a servlet filter.
      Parameters:
      servletContext - the ServletContext
      filterClassName - name of class annotated with WebFilter
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent sce)
      Deprecated.
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener