org.apache.commons.workflow
Class ContextEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.apache.commons.workflow.ContextEvent
All Implemented Interfaces:
Serializable

public class ContextEvent
extends EventObject

A ContextEvent provides notification to a ContextListener that a specified event has occurred for the specified context.

Version:
$Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  Context context
          The Context upon which this event occurred.
protected  StepException exception
          The StepException that caused this event.
protected  Step step
          The Step upon which this event occurred.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContextEvent(Context context)
          Construct a new immutable ContextEvent.
ContextEvent(Context context, Step step)
          Construct a new immutable ContextEvent.
ContextEvent(Context context, Step step, StepException exception)
          Construct a new immutable ContextEvent.
 
Method Summary
 Context getContext()
           
 StepException getException()
           
 Step getStep()
           
 
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

context

protected Context context
The Context upon which this event occurred.


exception

protected StepException exception
The StepException that caused this event.


step

protected Step step
The Step upon which this event occurred. For beanReplaced events, this will be the previous step.

Constructor Detail

ContextEvent

public ContextEvent(Context context)
Construct a new immutable ContextEvent.

Parameters:
context - Context in which this event occurred

ContextEvent

public ContextEvent(Context context,
                    Step step)
Construct a new immutable ContextEvent.

Parameters:
context - Context upon which this event occurred
step - Step this event is associated with (if any)

ContextEvent

public ContextEvent(Context context,
                    Step step,
                    StepException exception)
Construct a new immutable ContextEvent.

Parameters:
context - Context upon which this event occurred
step - Step this event is associated with (if any)
exception - StepException that was thrown (afterStep() and afterActivity() only)
Method Detail

getContext

public Context getContext()

getException

public StepException getException()

getStep

public Step getStep()


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.