javax.servlet.ServletContextAttributeListener翻译

来源:互联网 发布:ubuntu系统kvm网络配置 编辑:程序博客网 时间:2024/04/30 07:31
 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 ServletContextAttributeListener

All Superinterfaces:
EventListener

public interface ServletContextAttributeListener
extends EventListener

Implementations of this interface recieve notifications of changes to the attribute list on the servlet context of a web application. 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:
ServletContextAttributeEvent

Method Summary voidattributeAdded(ServletContextAttributeEvent scab)
          Notification that a new attribute was added to the servlet context. 通知有新的属性被加入servlet上下文。
 voidattributeRemoved(ServletContextAttributeEvent scab)
          Notification that an existing attribute has been removed from the servlet context. 通知有存在的属性被删除出servlet上下文。
 voidattributeReplaced(ServletContextAttributeEvent scab)
          Notification that an attribute on the servlet context has been replaced. 通知有servlet上下文中的属性被替换。
 

Method Detail

attributeAdded

public void attributeAdded(ServletContextAttributeEvent scab)
Notification that a new attribute was added to the servlet context. Called after the attribute is added. 通知有新的属性被加入servlet上下文。在属性被增加后调用。


attributeRemoved

public void attributeRemoved(ServletContextAttributeEvent scab)
Notification that an existing attribute has been removed from the servlet context. Called after the attribute is removed. 通知有存在的属性被删除出servlet上下文。在属性被删除后调用。


attributeReplaced

public void attributeReplaced(ServletContextAttributeEvent scab)
Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced. 通知有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.