java.beans.beancontext
Class BeanContextEvent

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

public abstract class BeanContextEvent
extends EventObject sample code for java.util.EventObject definition code for java.util.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.

Since:
1.2
See Also:
BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext , Serialized Form

Field Summary
protected  BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext propagatedFrom sample code for java.beans.beancontext.BeanContextEvent.propagatedFrom definition code for java.beans.beancontext.BeanContextEvent.propagatedFrom
          The BeanContext from which this event was propagated
 
Fields inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
source sample code for java.util.EventObject.source definition code for java.util.EventObject.source
 
Constructor Summary
protected BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent.BeanContextEvent(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextEvent.BeanContextEvent(java.beans.beancontext.BeanContext) (BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc)
          Contruct a BeanContextEvent
 
Method Summary
 BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext getBeanContext sample code for java.beans.beancontext.BeanContextEvent.getBeanContext() definition code for java.beans.beancontext.BeanContextEvent.getBeanContext() ()
          Gets the BeanContext associated with this event.
 BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext getPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom() definition code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom() ()
          Gets the BeanContext from which this event was propagated.
 boolean isPropagated sample code for java.beans.beancontext.BeanContextEvent.isPropagated() definition code for java.beans.beancontext.BeanContextEvent.isPropagated() ()
          Reports whether or not this event is propagated from some other BeanContext.
 void setPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext) (BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc)
          Sets the BeanContext from which this event was propagated.
 
Methods inherited from class java.util.EventObject sample code for java.util.EventObject definition code for java.util.EventObject
getSource sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource() , toString sample code for java.util.EventObject.toString() definition code for java.util.EventObject.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

propagatedFrom sample code for java.beans.beancontext.BeanContextEvent.propagatedFrom

protected BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  propagatedFrom
The BeanContext from which this event was propagated

Constructor Detail

BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextEvent(java.beans.beancontext.BeanContext)

protected BeanContextEvent(BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc)
Contruct a BeanContextEvent

Parameters:
bc - The BeanContext source
Method Detail

getBeanContext sample code for java.beans.beancontext.BeanContextEvent.getBeanContext() definition code for java.beans.beancontext.BeanContextEvent.getBeanContext()

public BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  getBeanContext()
Gets the BeanContext associated with this event.

Returns:
the BeanContext associated with this event.

setPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextEvent.setPropagatedFrom(java.beans.beancontext.BeanContext)

public void setPropagatedFrom(BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc)
Sets the BeanContext from which this event was propagated.

Parameters:
bc - the BeanContext from which this event was propagated

getPropagatedFrom sample code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom() definition code for java.beans.beancontext.BeanContextEvent.getPropagatedFrom()

public BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  getPropagatedFrom()
Gets the BeanContext from which this event was propagated.

Returns:
the BeanContext from which this event was propagated

isPropagated sample code for java.beans.beancontext.BeanContextEvent.isPropagated() definition code for java.beans.beancontext.BeanContextEvent.isPropagated()

public boolean isPropagated()
Reports whether or not this event is propagated from some other BeanContext.

Returns:
true if propagated, false if not