Class ServletProcessApplicationDeployer

  • All Implemented Interfaces:
    javax.servlet.ServletContainerInitializer

    public class ServletProcessApplicationDeployer
    extends java.lang.Object
    implements javax.servlet.ServletContainerInitializer

    This class is an implementation of ServletContainerInitializer and is notified whenever a subclass of ServletProcessApplication annotated with the ProcessApplication annotation is deployed. In such an event, we automatically add the class as ServletContextListener to the ServletContext.

    NOTE: Only works with Servlet 3.0 or better.

    Author:
    Daniel Meyer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onStartup​(java.util.Set<java.lang.Class<?>> c, javax.servlet.ServletContext ctx)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServletProcessApplicationDeployer

        public ServletProcessApplicationDeployer()
    • Method Detail

      • onStartup

        public void onStartup​(java.util.Set<java.lang.Class<?>> c,
                              javax.servlet.ServletContext ctx)
                       throws javax.servlet.ServletException
        Specified by:
        onStartup in interface javax.servlet.ServletContainerInitializer
        Throws:
        javax.servlet.ServletException