ServletContextAttributeListener (Java EE 5)

Java EE API


javax.servlet Interface ServletContextAttributeListener

All Superinterfaces:
EventListener

public interface ServletContextAttributeListener
extends EventListener

Implements: java.util.EventListener

此接口的实现接收 Web 应用程序的 servlet 上下文中的属性列表更改通知。要接收通知事件,必须在 Web 应用程序的部署描述符中配置实现类。
英文文档:

Implementations of this interface receive notifications of changes to the attribute list on the servlet context of a web application. To receive notification events, the implementation class must be configured in the deployment descriptor for the web application.

Since:
v 2.3
See Also:
ServletContextAttributeEvent

Method Summary
 void
 void
 void
 

Method Detail

public void attributeAdded(ServletContextAttributeEvent scab)
通知向 servlet 上下文中添加了一个新属性。在添加属性之后调用。
英文文档:

attributeAdded

void attributeAdded(ServletContextAttributeEvent scab)
Notification that a new attribute was added to the servlet context. Called after the attribute is added.


public void attributeRemoved(ServletContextAttributeEvent scab)
通知现有属性已从 servlet 上下文中移除。在移除属性之后调用。
英文文档:

attributeRemoved

void attributeRemoved(ServletContextAttributeEvent scab)
Notification that an existing attribute has been removed from the servlet context. Called after the attribute is removed.


public void attributeReplaced(ServletContextAttributeEvent scab)
通知已替换 servlet 上下文中的一个属性。在替换属性之后调用。
英文文档:

attributeReplaced

void attributeReplaced(ServletContextAttributeEvent scab)
Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!