public abstract class BeanContextEvent extends EventObject
BeanContextEvent是抽象的所有事件发出根事件类,以及有关的语义,一BeanContext。这个类定义了一个机制,让BeanContextEvent子类的传播通过一系列的BeanContexts。的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, toStringprotected 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.