public class BeanContextServiceRevokedEvent extends BeanContextEvent
这一事件类型是以BeanContextServiceRevokedListener
用来识别服务被撤销。
Modifier and Type | Field and Description |
---|---|
protected 类 |
serviceClass
一个
类 参考服务被撤销。
|
propagatedFrom
source
Constructor and Description |
---|
BeanContextServiceRevokedEvent(BeanContextServices bcs, 类 sc, boolean invalidate)
构建一个
BeanContextServiceEvent 。
|
Modifier and Type | Method and Description |
---|---|
类 |
getServiceClass()
获取此通知的主题的服务类
|
BeanContextServices |
getSourceAsBeanContextServices()
获取源的类型
BeanContextServices 参考
|
boolean |
isCurrentServiceInvalidNow()
报告如果当前服务被强行撤销,在这种情况下,参考现在失效,无法使用。
|
boolean |
isServiceClass(类 service)
检查此事件,以确定是否被撤销的服务是一个特定的类。
|
getBeanContext, getPropagatedFrom, isPropagated, setPropagatedFrom
getSource, toString
protected 类 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.