1 package ecar.email; 2 3 import javax.servlet.ServletContextEvent; 4 import javax.servlet.ServletContextListener; 5 6 public class AgendadorListener implements ServletContextListener { 7 8 /** 9 * Inicializador.<br> 10 * 11 * @author N/C 12 * @since N/C 13 * @version N/C 14 * @param ServletContextEvent event 15 */ 16 public void contextInitialized(ServletContextEvent event) { 17 AgendadorEmail agenda = AgendadorEmail.getInstance(); 18 agenda.disparaTimer(); 19 } 20 21 /** 22 * Destrutor.<br> 23 * 24 * @author N/C 25 * @since N/C 26 * @version N/C 27 * @param ServletContextEvent event 28 */ 29 public void contextDestroyed(ServletContextEvent event) { 30 31 } 32 }