[/url] [url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview
Class
JavaTM 2 Platform
Ent. Ed. v1.4
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
javax.servlet
Class ServletContextAttributeEventjava.lang.Object



All Implemented Interfaces: Serializable public class ServletContextAttributeEvent extends ServletContextEventThis 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 FormField Summary
Fields inherited from class java.util.EventObject
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
getName()
Return the name of the attribute that changed on the ServletContext. 返回ServletContext改变的属性名。
getValue()
Returns the value of the attribute that has been added, removed, or replaced. 返回已被增加、删除、替换的属性值。
Methods inherited from class javax.servlet.ServletContextEvent
Methods inherited from class java.util.EventObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
ServletContextAttributeEventpublic 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
getNamepublic String getName()
Return the name of the attribute that changed on the ServletContext. 返回ServletContext改变的属性名。
getValuepublic 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. 返回已被增加、删除、替换的属性值。 如果属性被增加,就是该属性的值。属性被删除,就是被删除属性的值。 如果属性被替换,就是该属性的旧值。
[/url][url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview
Class
JavaTM 2 Platform
Ent. Ed. v1.4
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.