KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mr > kernel > dmf > DMFFlowFramework


1 package org.mr.kernel.dmf;
2
3 import java.util.Map JavaDoc;
4
5 import org.mr.core.protocol.MantaBusMessage;
6 import org.mr.core.util.patterns.flow.Declaration;
7 import org.mr.core.util.patterns.flow.DefaultFlowFramework;
8
9 /*
10  * Copyright 2002 by
11  * <a HREF="http://www.coridan.com">Coridan</a>
12  * <a HREF="mailto: support@coridan.com ">support@coridan.com</a>
13  *
14  * The contents of this file are subject to the Mozilla Public License Version
15  * 1.1 (the "License"); you may not use this file except in compliance with the
16  * License. You may obtain a copy of the License at
17  * http://www.mozilla.org/MPL/
18  *
19  * Software distributed under the License is distributed on an "AS IS" basis,
20  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
21  * for the specific language governing rights and limitations under the
22  * License.
23  *
24  * The Original Code is "MantaRay" (TM).
25  *
26  * The Initial Developer of the Original Code is Coridan.
27  * Portions created by the Initial Developer are Copyright (C) 2006
28  * Coridan Inc. All Rights Reserved.
29  *
30  * Contributor(s): all the names of the contributors are added in the source
31  * code where applicable.
32  *
33  * Alternatively, the contents of this file may be used under the terms of the
34  * LGPL license (the "GNU LESSER GENERAL PUBLIC LICENSE"), in which case the
35  * provisions of LGPL are applicable instead of those above. If you wish to
36  * allow use of your version of this file only under the terms of the LGPL
37  * License and not to allow others to use your version of this file under
38  * the MPL, indicate your decision by deleting the provisions above and
39  * replace them with the notice and other provisions required by the LGPL.
40  * If you do not delete the provisions above, a recipient may use your version
41  * of this file under either the MPL or the GNU LESSER GENERAL PUBLIC LICENSE.
42  
43  *
44  * This library is free software; you can redistribute it and/or modify it
45  * under the terms of the MPL as stated above or under the terms of the GNU
46  * Lesser General Public License as published by the Free Software Foundation;
47  * either version 2.1 of the License, or any later version.
48  *
49  * This library is distributed in the hope that it will be useful, but WITHOUT
50  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
51  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
52  * License for more details.
53  */

54
55  /**
56  * User: Moti Tal
57  * Date: Mar 17, 2005
58  * Time: 4:06:44 PM
59  *
60  * The DMF flow framework use the DefaultFlowFramework implementation of the FlowFramework and adding additional information between and after any step.
61  */

62 public class DMFFlowFramework extends DefaultFlowFramework{
63
64     protected void postSingleExecute(Declaration i_current, Map JavaDoc i_map, int order) {
65         //adding the step type and its position in the flow to the message header.
66
MantaBusMessage object = ((DMFObject)i_map).getMantaBusMessage();
67         object.addHeader(DMFDeclaration.DMF_PRIFIX_DECLARATION_NAME+((DMFDeclaration)i_current).declarationType(), String.valueOf(order));
68     }
69 }
70
Popular Tags