public abstract class BeanContextEvent extends EventObject
BeanContextEvent
是用于从发射的所有事件的抽象根事件类,和有关的语义,一个BeanContext
。 该类引入了一种允许BeanContextEvent BeanContextEvent
类通过BeanContext的BeanContext
的机制。 setPropagatedFrom()
和getPropagatedFrom()
方法允许BeanContext
将自身识别为传播事件的源。
BeanContext
, Serialized Form
Modifier and Type | Field and Description |
---|---|
protected BeanContext |
propagatedFrom
BeanContext 此事件的BeanContext
|
source
Modifier | Constructor and Description |
---|---|
protected |
BeanContextEvent(BeanContext bc)
Contruct一个BeanContextEvent
|
Modifier and Type | Method and Description |
---|---|
BeanContext |
getBeanContext()
获得与此事件
BeanContext BeanContext。
|
BeanContext |
getPropagatedFrom()
获取
BeanContext 此事件的BeanContext。
|
boolean |
isPropagated()
报告此事件是否从其他
BeanContext 。
|
void |
setPropagatedFrom(BeanContext bc)
设置
BeanContext 此事件的BeanContext。
|
getSource, toString
protected BeanContext propagatedFrom
BeanContext
此事件的BeanContext
protected BeanContextEvent(BeanContext bc)
bc
- BeanContext源码
public BeanContext getBeanContext()
BeanContext
BeanContext。
BeanContext
与此事件相关联。
public void setPropagatedFrom(BeanContext bc)
BeanContext
此事件的BeanContext。
bc
-
BeanContext
此事件的BeanContext
public BeanContext getPropagatedFrom()
BeanContext
此事件的BeanContext。
BeanContext
此事件的BeanContext
public boolean isPropagated()
BeanContext
。
true
如果传播,
false
如果没有
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.