javax.servlet.ServletContextEvent翻译

 
JavaTM 2 Platform
Ent. Ed. v1.4

javax.servlet
Class ServletContextEvent

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

public class ServletContextEvent extends EventObject

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

Since:
v 2.3
See Also:
ServletContextListener , Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServletContextEvent(ServletContext source)
          Construct a ServletContextEvent from the given context. 从给定的上下文中构建一个ServletContextEvent。
 
Method Summary
 ServletContextgetServletContext()
          Return the ServletContext that changed. 返回已改变的ServletContext。
 
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

ServletContextEvent

public ServletContextEvent(ServletContext source)
Construct a ServletContextEvent from the given context. 这是一个事件类,用于通知web应用程序中servlet上下文的改变。

Parameters:
source - - the ServletContext that is sending the event. 发送事件的ServletContext。
Method Detail

getServletContext

public ServletContext getServletContext()
Return the ServletContext that changed. 返回已改变的ServletContext。

Returns:
the ServletContext that sent the event. 发送事件的ServletContext。

JavaTM 2 Platform
Ent. Ed. v1.4

Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值