java.beans.beancontext

Class BeanContextEvent

public abstract class BeanContextEvent extends EventObject

Generic superclass for events fired by BeanContexts.

Since: 1.2

Field Summary
protected BeanContextpropagatedFrom
The BeanContext that most recently passed this event on.
Constructor Summary
protected BeanContextEvent(BeanContext source)
Create a new event, from the specified BeanContext.
Method Summary
BeanContextgetBeanContext()
Get the BeanContext that originated this event.
BeanContextgetPropagatedFrom()
Get the most recent propagator of this event.
booleanisPropagated()
Tell whether this event has been propagated.
voidsetPropagatedFrom(BeanContext propagator)
Set the most recent propagator of this event.

Field Detail

propagatedFrom

protected BeanContext propagatedFrom
The BeanContext that most recently passed this event on.

Constructor Detail

BeanContextEvent

protected BeanContextEvent(BeanContext source)
Create a new event, from the specified BeanContext. propagatedFrom will be initialized to null.

Parameters: source the source of the event.

Method Detail

getBeanContext

public BeanContext getBeanContext()
Get the BeanContext that originated this event.

Returns: the originator of this event.

getPropagatedFrom

public BeanContext getPropagatedFrom()
Get the most recent propagator of this event. If this value is null, you have received the event straight from the source.

Returns: the most recent propagator of this event.

isPropagated

public boolean isPropagated()
Tell whether this event has been propagated.

Returns: true iff getPropagatedFrom() != null.

setPropagatedFrom

public void setPropagatedFrom(BeanContext propagator)
Set the most recent propagator of this event.

Parameters: propagator the most recent propagator of this event.