javax.servlet.ServletContextAttributeEvent翻译

 
JavaTM 2 Platform
Ent. Ed. v1.4

javax.servlet
Class ServletContextAttributeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.servlet.ServletContextEvent
          extended byjavax.servlet.ServletContextAttributeEvent
All Implemented Interfaces:
Serializable

public class ServletContextAttributeEvent extends ServletContextEvent

This is the event class for notifications about changes to the attributes of the servlet context of a web application. 这是一个事件类,用于通知web应用程序中servlet上下文属性的改变。

Since:
v 2.3
See Also:
ServletContextAttributeListener , Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServletContextAttributeEvent(ServletContext source, String name, Object value)
          Construct a ServletContextAttributeEvent from the given context for the given attribute name and attribute value. 从给定的上下文中按给定的属性名和属性值构建一个ServletContextAttributeEvent。
 
Method Summary
 StringgetName()
          Return the name of the attribute that changed on the ServletContext. 返回ServletContext改变的属性名。
 ObjectgetValue()
          Returns the value of the attribute that has been added, removed, or replaced. 返回已被增加、删除、替换的属性值。
 
Methods inherited from class javax.servlet.ServletContextEvent
getServletContext
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletContextAttributeEvent

public ServletContextAttributeEvent(ServletContext source,
                                    String name,
                                    Object value)
Construct a ServletContextAttributeEvent from the given context for the given attribute name and attribute value. 从给定的上下文中按给定的属性名和属性值构建一个ServletContextAttributeEvent。

Method Detail

getName

public String getName()
Return the name of the attribute that changed on the ServletContext. 返回ServletContext改变的属性名。


getValue

public Object getValue()
Returns the value of the attribute that has been added, removed, or replaced. If the attribute was added, this is the value of the attribute. If the attrubute was removed, this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute. 返回已被增加、删除、替换的属性值。 如果属性被增加,就是该属性的值。属性被删除,就是被删除属性的值。 如果属性被替换,就是该属性的旧值。


JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值