Class M2ServletContextListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

    @WebListener
    public class M2ServletContextListener
    extends Object
    implements javax.servlet.ServletContextListener
    It reads all the jars present in the WEB-INF/lib to create a Map with entries of GAV and path of the dependency
    • Constructor Detail

      • M2ServletContextListener

        public M2ServletContextListener()
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent servletContextEvent)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent servletContextEvent)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener
      • deploy

        public void deploy​(org.guvnor.common.services.project.model.GAV gav,
                           String jarPath)