Java-ServletContextListener
2015-10-23 19:58
295 查看
/** * Implementations of this interface receive notifications about * changes to the servlet context of the web application they are * part of. * To receive notification events, the implementation class * must be configured in the deployment descriptor for the web * application. * @see ServletContextEvent * @since v 2.3 */ //实现这个接口会收到这个web 应用的servlet 上下文的改变的通知 public interface ServletContextListener extends EventListener { /** ** Notification that the web application initialization ** process is starting. ** All ServletContextListeners are notified of context ** initialization before any filter or servlet in the web ** application is initialized. */ //上下文初始化,所有的Servlet上下文监听器都会被通知上下文初始化在web应用中所有的过滤器filter或者servlet被初始化之前。 public void contextInitialized ( ServletContextEvent sce ); /** ** Notification that the servlet context is about to be shut down. ** All servlets and filters have been destroy()ed before any ** ServletContextListeners are notified of context ** destruction. */ //上下文销毁, 在ServletContextListeners被通知context销毁的时候所有的servlet和过滤器都已经被销毁 public void contextDestroyed ( ServletContextEvent sce ); }
相关文章推荐
- Java-ServletContextListener
- Java-ServletContextListener
- Java-ServletContextEvent-ServletContextAttributeEvent
- Java-ServletContextEvent-ServletContextAttributeEvent
- struts2值栈学习
- java中的代码初始化顺序
- Java-ServletContext
- Java-ServletContext
- Java-ServletContext
- Java Web 路径问题
- JAVA异常
- Java内存泄露原因详解
- Spring注解讲解
- java日期工具类DateUtil-续一
- Java 正则表达式学习总结和一些小例子
- java日期工具类DateUtil-续二
- java日期工具类DateUtil
- java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow
- Spring 3 以后的注解介绍(转载)
- Spring @Resource、@Autowired的注解注入