public abstract class

BeanContextEvent

extends EventObject
java.lang.Object
   ↳ java.util.EventObject
     ↳ java.beans.beancontext.BeanContextEvent
Known Direct Subclasses

Class Overview

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.

See Also

Summary

Fields
protected BeanContext propagatedFrom The BeanContext from which this event was propagated
[Expand]
Inherited Fields
From class java.util.EventObject
Protected Constructors
BeanContextEvent(BeanContext bc)
Contruct a BeanContextEvent
Public Methods
BeanContext getBeanContext()
Gets the BeanContext associated with this event.
synchronized BeanContext getPropagatedFrom()
Gets the BeanContext from which this event was propagated.
synchronized boolean isPropagated()
Reports whether or not this event is propagated from some other BeanContext.
synchronized void setPropagatedFrom(BeanContext bc)
Sets the BeanContext from which this event was propagated.
[Expand]
Inherited Methods
From class java.util.EventObject
From class java.lang.Object

Fields

protected BeanContext propagatedFrom

The BeanContext from which this event was propagated

Protected Constructors

protected BeanContextEvent (BeanContext bc)

Contruct a BeanContextEvent

Parameters
bc The BeanContext source

Public Methods

public BeanContext getBeanContext ()

Gets the BeanContext associated with this event.

Returns
  • the BeanContext associated with this event.

public synchronized BeanContext getPropagatedFrom ()

Gets the BeanContext from which this event was propagated.

Returns
  • the BeanContext from which this event was propagated

public synchronized boolean isPropagated ()

Reports whether or not this event is propagated from some other BeanContext.

Returns
  • true if propagated, false if not

public synchronized void setPropagatedFrom (BeanContext bc)

Sets the BeanContext from which this event was propagated.

Parameters
bc the BeanContext from which this event was propagated