KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > soto > state > TestFlowListener


1 package org.sapia.soto.state;
2
3
4 /**
5  * @author Yanick Duchesne
6  * <dl>
7  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
8  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
9  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
10  * </dl>
11  */

12 public class TestFlowListener implements StateExecListener {
13   boolean pre;
14   boolean post;
15   boolean err;
16
17   /**
18    *
19    */

20   public TestFlowListener() {
21     super();
22   }
23
24   public void onError(Result st, String JavaDoc flowId, Err err) {
25     this.err = true;
26   }
27
28   public void onPostExec(Result st, String JavaDoc flowId) {
29     post = true;
30   }
31
32   public void onPreExec(Result st, String JavaDoc flowId) {
33     pre = true;
34   }
35 }
36
Popular Tags