ServletContextEvent (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.servlet Class ServletContextEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.ServletContextEvent
所有已实现的接口:
Serializable
直接已知子类:
ServletContextAttributeEvent

public class ServletContextEvent
extends EventObject

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

从以下版本开始:
v 2.3
另请参见:
ServletContextListener, Serialized Form

字段摘要
 
Fields inherited from class java.util.EventObject
source
 
构造器摘要
ServletContextEvent(ServletContext source)
          Construct a ServletContextEvent from the given context.
 
方法摘要
 ServletContext getServletContext()
          Return the ServletContext that changed.
 
类方法继承 java.util.EventObject
getSource, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

ServletContextEvent

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

参数:
source - - the ServletContext that is sending the event.

方法详细信息

getServletContext

public ServletContext getServletContext()
Return the ServletContext that changed.

返回:
the ServletContext that sent the event.

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.