public class BeanContextServiceRevokedEvent extends BeanContextEvent
该事件类型由BeanContextServiceRevokedListener用于识别正在撤销的服务。
| Modifier and Type | Field and Description |
|---|---|
protected 类 |
serviceClass
A
类对正在撤销的服务的引用。
|
propagatedFromsource| Constructor and Description |
|---|
BeanContextServiceRevokedEvent(BeanContextServices bcs, 类 sc, boolean invalidate)
构造一个
BeanContextServiceEvent 。
|
| Modifier and Type | Method and Description |
|---|---|
类 |
getServiceClass()
获取作为此通知主题的服务类
|
BeanContextServices |
getSourceAsBeanContextServices()
获取源为BeanContextServices类型的
BeanContextServices
|
boolean |
isCurrentServiceInvalidNow()
报告当前服务是否被强制撤销,在这种情况下,引用现在将无效并且不可用。
|
boolean |
isServiceClass(类 service)
检查此事件以确定被撤销的服务是否属于特定类。
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFromgetSource, toStringprotected 类 serviceClass
类对正在撤销的服务的引用。
public BeanContextServiceRevokedEvent(BeanContextServices bcs, 类 sc, boolean invalidate)
BeanContextServiceEvent 。
bcs - 该服务被撤销的
BeanContextServices
sc - 正在撤销的服务
invalidate -
true ,立即撤销
public BeanContextServices getSourceAsBeanContextServices()
BeanContextServices
BeanContextServices
public 类 getServiceClass()
类对正在撤销的服务的引用
public boolean isServiceClass(类 service)
service - 感兴趣的服务(应为非空)
true如果被撤销的服务与指定的服务具有相同的类
public boolean isCurrentServiceInvalidNow()
true如果当前服务被强制撤销
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.