1 16 package org.directwebremoting.servlet; 17 18 import java.util.List ; 19 20 import javax.servlet.ServletContextEvent ; 21 import javax.servlet.ServletContextListener ; 22 23 import org.directwebremoting.extend.ServerLoadMonitor; 24 import org.directwebremoting.impl.ContainerUtil; 25 26 31 public class EfficientShutdownServletContextListener implements ServletContextListener 32 { 33 36 public void contextInitialized(ServletContextEvent ev) 37 { 38 } 39 40 43 public void contextDestroyed(ServletContextEvent ev) 44 { 45 List containers = ContainerUtil.getAllPublishedContainers(ev.getServletContext()); 46 ContainerUtil.shutdownServerLoadMonitorsInContainerList(containers, "EfficientShutdownServletContextListener"); 47 } 48 } 49 | Popular Tags |