java.beans.beancontext
Class BeanContextEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.beancontext.BeanContextEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BeanContextMembershipEvent, BeanContextServiceAvailableEvent, BeanContextServiceRevokedEvent

public abstract class BeanContextEvent
extends EventObject

Generic superclass for events fired by BeanContexts.

Since:
1.2
See Also:
Serialized Form

Field Summary
protected  BeanContext propagatedFrom
          The BeanContext that most recently passed this event on.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected BeanContextEvent(BeanContext source)
          Create a new event, from the specified BeanContext.
 
Method Summary
 BeanContext getBeanContext()
          Get the BeanContext that originated this event.
 BeanContext getPropagatedFrom()
          Get the most recent propagator of this event.
 boolean isPropagated()
          Tell whether this event has been propagated.
 void setPropagatedFrom(BeanContext propagator)
          Set the most recent propagator of this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.