KickJava   Java API By Example, From Geeks To Geeks.

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


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 package org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base;
27
28 //Package dependencies.
29
import org.objectweb.openccm.descriptor.ZipEntryRetriever;
30
31 /**
32  * The ChildDeployerContext is a abstract basic implementation in charge to provide
33  * generic methods used by all the children deployers of componentassembly. The softpkg
34  * deployer and corbacomponent deployer are considered as children such there are
35  * connected on the componentassembly tree representation
36  *
37  * @author <a HREF="mailto:briclet@lifl.fr">Frederic Briclet</a>
38  *
39  * @version 0.1
40  */

41 public abstract class ChildDeployerContext
42     extends DeployerContext
43 {
44     // ==================================================================
45
//
46
// Internal state.
47
//
48
// ==================================================================
49

50     //The root deployer context which handle all the services and tools
51
private RootDeployerContext root;
52     
53     // ==================================================================
54
//
55
// Constructors.
56
//
57
// ==================================================================
58

59     // ==================================================================
60
//
61
// Internal methods.
62
//
63
// ==================================================================
64

65     // ==================================================================
66
//
67
// Public .
68
//
69
// ==================================================================
70

71     /**
72      * ConnectRootDeployerContext method is used to connect the root context
73      * to the current deployer. When the root deployer context is connected
74      * all its services are available for the deployer.
75      *
76      * @param The rootDeployerContext to connect
77      */

78     public void
79     connectRootDeployerContext(RootDeployerContext root)
80     {
81         this.root = root;
82     }
83     
84     /**
85      * Method accessor to retrieve the RootDeployerContext
86      *
87      * @return The root deployer context
88      */

89     public RootDeployerContext
90     getRootDeployerContext()
91     {
92         return root;
93     }
94
95     /**
96      * Method accessor to the zipEntryRetriever connected to the root
97      * deployer context.
98      *
99      * @return The zipEntryRetriever used to acces to the zipEntries
100      */

101     public ZipEntryRetriever getZipEntryRetriever()
102     {
103         return getRootDeployerContext().getZipEntryRetriever();
104     }
105     
106     /**
107      * Method accessor to get logger tool.
108      *
109      * @return The current DeploymentLogger available to log message and event.
110      */

111     public DeploymentLogger getLogger()
112     {
113         return getRootDeployerContext().getDeploymentLogger();
114     }
115     
116 }
117
Popular Tags