KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jfun > yan > lifecycle > Phase


1 /*****************************************************************************
2  * Copyright (C) Zephyr Business Solution. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  *****************************************************************************/

8
9 /*
10  * Created on Oct 13, 2005
11  *
12  * Author Michelle Lei
13  * ZBS
14  */

15 package jfun.yan.lifecycle;
16
17 import java.io.Serializable JavaDoc;
18
19 /**
20  * A descriptor class representing a certain phase within a life-cycle.
21  * <p>
22  * Zephyr Business Solution
23  *
24  * @author Michelle Lei
25  *
26  */

27 public class Phase implements Serializable JavaDoc{
28   private final Object JavaDoc key;
29   private final ExceptionHandler handler;
30   /**
31    * To created a Phase object.
32    * @param key the key of the phase.
33    * @param handler the exception handler of the phase.
34    */

35   public Phase(Object JavaDoc key, ExceptionHandler handler) {
36     this.handler = handler;
37     this.key = key;
38   }
39   /**
40    * To get the exception handler of this phase.
41    */

42   public ExceptionHandler getExceptionHandler() {
43     return handler;
44   }
45   /**
46    * To get the key of this phase.
47    */

48   public Object JavaDoc getPhaseKey() {
49     return key;
50   }
51 }
52
Popular Tags