public abstract class BeanContextEvent extends EventObject
BeanContextEvent is the abstract root event class for all events emitted from, and pertaining to the semantics of, a BeanContext. This class introduces a mechanism to allow the propagation of BeanContextEvent subclasses through a hierarchy of BeanContexts. The setPropagatedFrom() and getPropagatedFrom() methods allow a BeanContext to identify itself as the source of a propagated event.
BeanContext,
Serialized Form
| Modifier and Type | Field and Description |
|---|---|
protected BeanContext |
propagatedFrom
The
BeanContext from which this event was propagated
|
source| Modifier | Constructor and Description |
|---|---|
protected |
BeanContextEvent(BeanContext
Contruct a BeanContextEvent
|
| Modifier and Type | Method and Description |
|---|---|
BeanContext |
getBeanContext()
Gets the
BeanContext associated with this event.
|
BeanContext |
getPropagatedFrom()
Gets the
BeanContext from which this event was propagated.
|
boolean |
isPropagated()
Reports whether or not this event is propagated from some other
BeanContext.
|
void |
setPropagatedFrom(BeanContext
Sets the
BeanContext from which this event was propagated.
|
getSource, toStringprotected BeanContextpropagatedFrom
BeanContext from which this event was propagated
protected BeanContextEvent(BeanContextbc)
bc - The BeanContext source
public BeanContextgetBeanContext()
BeanContext associated with this event.
BeanContext associated with this event.
public void setPropagatedFrom(BeanContextbc)
BeanContext from which this event was propagated.
bc - the
BeanContext from which this event was propagated
public BeanContextgetPropagatedFrom()
BeanContext from which this event was propagated.
BeanContext from which this event was propagated
public boolean isPropagated()
BeanContext.
true if propagated,
false if not