org.oddjob.beanbus
Class BusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.oddjob.beanbus.BusEvent
All Implemented Interfaces:
Serializable

public class BusEvent
extends EventObject

An event on the bus.

See Also:
Serialized Form
Author:
rob

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BusEvent(BusConductor source, BusPhase phase)
          Constructor.
BusEvent(BusConductor source, BusPhase phase, Exception busCrashException)
          Constructor for a bus crash event.
 
Method Summary
 Exception getBusCrashException()
           
 BusPhase getPhase()
           
 BusConductor getSource()
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusEvent

public BusEvent(BusConductor source,
                BusPhase phase)
Constructor.

Parameters:
source - The source of the event.
phase - The phase that caused the event.

BusEvent

public BusEvent(BusConductor source,
                BusPhase phase,
                Exception busCrashException)
Constructor for a bus crash event.

Parameters:
source - The source of the event.
phase - The phase that caused the event.
busCrashException - The exception that cause the crash.
Method Detail

getSource

public BusConductor getSource()
Overrides:
getSource in class EventObject

getPhase

public BusPhase getPhase()

getBusCrashException

public Exception getBusCrashException()