Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.beans.beancontext
Class BeanContextEvent  view BeanContextEvent download BeanContextEvent.java

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

public abstract class BeanContextEvent
extends java.util.EventObject

Generic superclass for events fired by BeanContexts.

Since:
1.2

Field Summary
protected  BeanContext propagatedFrom
          The BeanContext that most recently passed this event on.
private static long serialVersionUID
           
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

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.

Method Detail

getBeanContext

public BeanContext getBeanContext()
Get the BeanContext that originated 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.


isPropagated

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


setPropagatedFrom

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