KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > invocation > InvocationType


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.invocation;
10
11 /**
12  * The invocation type at the portal level as a type safe enumeration .
13  *
14  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
15  * @version $Revision: 1.2 $
16  */

17 public class InvocationType
18 {
19
20    /** Means we are in the target processing phase. */
21    public static final InvocationType PROCESS_TARGET = new InvocationType("ACTION");
22
23    /** Means we are in the rendering phase. */
24    public static final InvocationType PROCESS_RENDER = new InvocationType("RENDER");
25
26    /** Process the action. */
27    public static final InvocationType ACTION = new InvocationType("ACTION");
28
29    /** Render the window. */
30    public static final InvocationType RENDER = new InvocationType("RENDER");
31
32    /** The type name. */
33    private String JavaDoc name;
34
35    private InvocationType(String JavaDoc name)
36    {
37       this.name = name;
38    }
39
40    public String JavaDoc getName()
41    {
42       return name;
43    }
44 }
45
Popular Tags