javax.servlet.ServletContextListener翻译

来源:互联网 发布:网络与信息期刊 编辑:程序博客网 时间:2024/04/30 01:57
 Overview Package  Class Tree Deprecated Index Help JavaTM 2 Platform
Ent. Ed. v1.4
 PREV CLASS   NEXT CLASSFRAMES    NO FRAMES     All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD

javax.servlet
Interface ServletContextListener

All Superinterfaces:
EventListener

public interface ServletContextListener
extends EventListener

Implementations of this interface recieve notifications about changes to the servlet context of the web application they are part of. To recieve notification events, the implementation class must be configured in the deployment descriptor for the web application. 实现该接口可以在web应用程序的servlet上下文发生改变时接收通知。为了接收到通知事件,实现类必须在web应用的部署描述符中配置。

Since:
v 2.3
See Also:
ServletContextEvent

Method Summary voidcontextDestroyed(ServletContextEvent sce)
          Notification that the servlet context is about to be shut down. 发出通知servlet上下文将被关闭。
 voidcontextInitialized(ServletContextEvent sce)
          Notification that the web application initialization process is starting. 发出通知web应用程序初始化进程正在进行。
 

Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent sce)
Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialisation before any filter or servlet in the web application is initialized. 发出通知web应用程序初始化进程正在进行。在web应用中的过滤器和servlet初始化之前,所有的ServletContextListener都会就上下文的初始化被通知。


contextDestroyed

public void contextDestroyed(ServletContextEvent sce)
Notification that the servlet context is about to be shut down. All servlets have been destroy()ed before any ServletContextListeners are notified of context destruction. 发出通知servlet上下文将被关闭。在任何ServletContextListener被通知上下文消亡之前,所有的servlet都已消亡。


Overview Package  Class Tree Deprecated Index Help JavaTM 2 Platform
Ent. Ed. v1.4
 PREV CLASS   NEXT CLASSFRAMES    NO FRAMES     All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.