KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > controller > actionflow > PresentationNodeExecutor


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.mvc.controller.actionflow;
8
9
10 import java.util.Map JavaDoc;
11
12 import com.inversoft.verge.mvc.controller.actionflow.config.Namespace;
13 import com.inversoft.verge.mvc.controller.actionflow.config.Node;
14
15
16 /**
17  * This class is the node executor for presentation Nodes. The
18  * presentation nodes do not contain any business logic so,
19  * this currently is a no-op.
20  *
21  * @author Brian Pontarelli
22  * @since 2.0
23  * @version 2.0
24  */

25 public class PresentationNodeExecutor implements NodeExecutor {
26
27     /**
28      * Constructs a new <code>PresentationNodeExecutor</code>.
29      */

30     public PresentationNodeExecutor() {
31     }
32
33
34     /**
35      * Presentation nodes are now no-ops.
36      *
37      * @param namespace The Namespace the Node is located in
38      * @param config The ActionHandlerNode that describes what to execute
39      * @param state The current state of the ActionFlow itself. This is where
40      * the HTTP Objects are stored.
41      * @param extraParams A Map of extra params that have been passed into the
42      * ActionFlow system.
43      * @return Always null
44      * @throws Exception Throws a NodeExecutorException if the forward throws a
45      * ServletException or IOException
46      */

47     public Object JavaDoc execute(Namespace namespace, Node config, ActionFlowAction state,
48             Map JavaDoc extraParams)
49     throws Exception JavaDoc {
50         // With the new MVC, this is a no-op now
51
return null;
52     }
53 }
54
55
Popular Tags