KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > descriptor > componentassembly > ccm > deployer > base > Deployer


1 /*====================================================================
2
3 OpenCCM: The Open CORBA Component Model Platform
4 Copyright (C) 2000-2004 INRIA - USTL - LIFL - GOAL
5 Contact: openccm@objectweb.org
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20 USA
21
22 Initial developer(s): Briclet Frédéric.
23 Contributor(s): ______________________________________.
24
25 ====================================================================*/

26
27 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base;
28
29
30 /**
31  * The Depoyer interface specified all the methods that a valid deployer must
32  * implements to be introduced in the deployer architecture
33  *
34  * @author <a HREF="mailto:briclet@lifl.fr">Frederic Briclet</a>
35  *
36  * @version 0.1
37  */

38 public interface Deployer {
39     
40     /**
41      * The visit method is in charge to process all the children deployer
42      * that this deployer is able to process.
43      * @param depl
44      * @throws FatalDeploymentException if the Deployer give in parameter
45      * is not supported.
46      */

47     public void
48     visit(Deployer depl)
49     throws FatalDeploymentException;
50     
51     /**
52      * The traverse method is in charge to schedule the processing of all the
53      * deployers given in @param deployers. It must invoke this processing on
54      * the @param deployer which is in charge of this deployer. The main
55      * interest of this method is to extract the scheduling preoccupation and
56      * allow to implements different sceduling policy.
57      *
58      * @param deployer The deployer in charge to process the @param deployers.
59      * @param deployers The deployers to process
60      * @throws FatalDeploymentException if a fatal error occured during the
61      * deployment or if the @param deployers give in parameter are not supported.
62      */

63     public void
64     traverse(Deployer deployer,Deployer [] deployers)
65     throws FatalDeploymentException;
66     
67     /**
68      * The getStatus method is used to retrieved the current status
69      * of the deployer.
70      * @return The deployer current status.
71      */

72     public DeployerState getStatus();
73     
74     /**
75      * The getIdentifier method must provide a string identifier of the
76      * deployer.
77      *
78      * @return A string identifier of the deployer
79      */

80     public String JavaDoc getIdentifier();
81
82 }
83
Popular Tags