ServletContextEvent (Java EE 5)

Java EE API


javax.servlet Class ServletContextEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.ServletContextEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ServletContextAttributeEvent

public class ServletContextEvent
extends EventObject

Extends: java.util.EventObject

这是一个事件类,用于通知有关 Web 应用程序的 servlet 上下文更改的信息。
英文文档:

This is the event class for notifications about changes to the servlet context of a web application.

Since:
v 2.3
See Also:
ServletContextListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
 
Constructor Summary
 
Method Summary
 ServletContext
 
Methods inherited from class java.util.EventObject
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public ServletContextEvent(ServletContext source)
构造来自给定上下文的 ServletContextEvent。
source - 发送该事件的 ServletContext。
英文文档:

ServletContextEvent

public ServletContextEvent(ServletContext source)
Construct a ServletContextEvent from the given context.

Parameters:
source - - the ServletContext that is sending the event.

Method Detail

public ServletContext getServletContext()
返回更改的 ServletContext。
return 发送该事件的 ServletContext。
英文文档:

getServletContext

public ServletContext getServletContext()
Return the ServletContext that changed.

Returns:
the ServletContext that sent the event.


Submit a bug or feature

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

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

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