javax.servlet.ServletContextAttributeEvent翻译

王朝java/jsp·作者佚名  2006-01-09
宽屏版  字体: |||超大  

[/url] [url=file:///F:/资料/文字资料/j2ee-1.4_doc/apidocs/overview-summary.html]Overview

Package

Class

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Ent. Ed. v1.4

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

javax.servlet

Class ServletContextAttributeEventjava.lang.Object

java.util.EventObject

javax.servlet.ServletContextEvent

javax.servlet.ServletContextAttributeEvent

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

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

String

getName()

Return the name of the attribute that changed on the ServletContext. 返回ServletContext改变的属性名。

Object

getValue()

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

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

Package

Class

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Ent. Ed. v1.4

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature Copyright 2003 Sun Microsystems, Inc. All rights reserved.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有