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, toStringprotected 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.