public abstract class BeanContextEvent extends EventObject
BeanContextEvent
是抽象的所有事件发出根事件类,以及有关的语义,一BeanContext
。这个类定义了一个机制,让BeanContextEvent
子类的传播通过一系列的BeanContext
s。的setPropagatedFrom()
和getPropagatedFrom()
方法允许BeanContext
标识本身作为一个传播事件源。
BeanContext
,
Serialized Form
Modifier and Type | Field and Description |
---|---|
protected BeanContext |
propagatedFrom
从该
BeanContext 这个事件传播
|
source
Modifier | Constructor and Description |
---|---|
protected |
BeanContextEvent(BeanContext bc)
每一个beancontextevent
|
Modifier and Type | Method and Description |
---|---|
BeanContext |
getBeanContext()
获取与该事件相关的
BeanContext 。
|
BeanContext |
getPropagatedFrom()
得到
BeanContext 这事件传播。
|
boolean |
isPropagated()
报告是否这个事件是从其他
BeanContext 传播。
|
void |
setPropagatedFrom(BeanContext bc)
集
BeanContext 这一事件传播。
|
getSource, toString
protected BeanContext propagatedFrom
BeanContext
这个事件传播
protected BeanContextEvent(BeanContext bc)
bc
- beancontext源
public BeanContext getBeanContext()
BeanContext
。
BeanContext
。
public void setPropagatedFrom(BeanContext bc)
BeanContext
这一事件传播。
bc
-
BeanContext
这一事件传播
public BeanContext getPropagatedFrom()
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.