org.apache.commons.workflow
Interface ContextListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
ActivityServlet, Main

public interface ContextListener
extends EventListener

A ContextListener registers its interest in receiving ContextEvent notifications when the occur on a particular Context of interest.

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

Method Summary
 void afterActivity(ContextEvent event)
          Invoked immediately after execution of the related Activity has been completed normally, been suspended, or been aborted by the throwing of a StepException.
 void afterStep(ContextEvent event)
          Invoked immediately after the specified Step was executed.
 void beforeActivity(ContextEvent event)
          Invoked immediately before execution of the related Activity has started.
 void beforeStep(ContextEvent event)
          Invoked immediately before the specified Step is executed.
 

Method Detail

afterActivity

void afterActivity(ContextEvent event)
Invoked immediately after execution of the related Activity has been completed normally, been suspended, or been aborted by the throwing of a StepException. The Step included in this event will be the last one to be executed.

Parameters:
event - The ContextEvent that has occurred

afterStep

void afterStep(ContextEvent event)
Invoked immediately after the specified Step was executed.

Parameters:
event - The ContextEvent that has occurred

beforeActivity

void beforeActivity(ContextEvent event)
Invoked immediately before execution of the related Activity has started. The Step included in this event will be the first one to be executed.

Parameters:
event - The ContextEvent that has occurred

beforeStep

void beforeStep(ContextEvent event)
Invoked immediately before the specified Step is executed.

Parameters:
event - The ContextEvent that has occurred


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