Class ServletProcessApplicationDeployer

  • All Implemented Interfaces:
    javax.servlet.ServletContainerInitializer

    public class ServletProcessApplicationDeployer
    extends 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
    • Constructor Detail

      • ServletProcessApplicationDeployer

        public ServletProcessApplicationDeployer()
    • Method Detail

      • onStartup

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