javax.servlet.ServletContextAttributeListener翻译

 
JavaTM 2 Platform
Ent. Ed. v1.4

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上下文中的属性被替换。在属性被替换后调用。


JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值