|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.EventObject
java.beans.beancontext.BeanContextEvent
java.beans.beancontext.BeanContextServiceRevokedEvent
public class BeanContextServiceRevokedEvent
BeanContextServiceRevokedListener 使用此事件类型来标识将被取消的服务。
| 字段摘要 | |
|---|---|
protected Class |
serviceClass
将被取消服务的 Class 引用。 |
| 从类 java.beans.beancontext.BeanContextEvent 继承的字段 |
|---|
propagatedFrom |
| 从类 java.util.EventObject 继承的字段 |
|---|
source |
| 构造方法摘要 | |
|---|---|
BeanContextServiceRevokedEvent(BeanContextServices bcs,
Class sc,
boolean invalidate)
构造一个 BeanContextServiceEvent。 |
|
| 方法摘要 | |
|---|---|
Class |
getServiceClass()
获得作为此通知主题的服务类 |
BeanContextServices |
getSourceAsBeanContextServices()
获得作为 BeanContextServices 类型引用的源 |
boolean |
isCurrentServiceInvalidNow()
报告当前服务是否被强行取消,在该情况下,引用当前无效并且不能使用。 |
boolean |
isServiceClass(Class service)
检查此事件,以确定将被取消的服务是否属于某个特定类。 |
| 从类 java.beans.beancontext.BeanContextEvent 继承的方法 |
|---|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom |
| 从类 java.util.EventObject 继承的方法 |
|---|
getSource, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected Class serviceClass
Class 引用。
| 构造方法详细信息 |
|---|
public BeanContextServiceRevokedEvent(BeanContextServices bcs,
Class sc,
boolean invalidate)
BeanContextServiceEvent。
bcs - 将从中取消此服务的 BeanContextServicessc - 将被取消的服务invalidate - true 表示立即取消| 方法详细信息 |
|---|
public BeanContextServices getSourceAsBeanContextServices()
BeanContextServices 类型引用的源
BeanContextServicespublic Class getServiceClass()
Class 引用public boolean isServiceClass(Class service)
service - 感兴趣的类(应该为非 null )
truepublic boolean isCurrentServiceInvalidNow()
true
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。