KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > openccm > descriptor > softpkg > ccm > SoftpkgRootDeployerContext


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.softpkg.ccm;
27
28 import java.net.ServerSocket JavaDoc;
29
30 import org.objectweb.openccm.descriptor.ZipEntryRetriever;
31 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.DeploymentLogger;
32 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.ErrorManager;
33 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.InitializationError;
34 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.base.RootDeployerContext;
35 import org.objectweb.openccm.descriptor.componentassembly.ccm.deployer.installer.DestinationDeployerFactory;
36
37 /**
38  * The root context for all the softpkg deployer tree.
39  *
40  * @author <a HREF="mailto:briclet@lifl.fr">Briclet Frédéric</a>
41  *
42  * @version 0.1
43  */

44 public class SoftpkgRootDeployerContext
45        extends RootDeployerContext
46 {
47
48     // ==================================================================
49
//
50
// Internal state.
51
//
52
// ==================================================================
53
private RootDeployerContext globalDeployerContext;
54     // ==================================================================
55
//
56
// Constructors.
57
//
58
// ==================================================================
59
// ==================================================================
60
//
61
// Internal methods.
62
//
63
// ==================================================================
64
// ==================================================================
65
//
66
// Public methods.
67
//
68
// ==================================================================
69

70     public void
71     initialize()
72     throws InitializationError
73     {
74         // TODO Auto-generated method stub
75

76     }
77
78     /**
79      * @param context
80      */

81     public void
82     connectGlobalDeployerContext(RootDeployerContext context)
83     {
84         globalDeployerContext = context;
85     }
86     
87     public RootDeployerContext
88     getGlobalDeployerContext()
89     {
90         return globalDeployerContext;
91     }
92    
93    
94     public String JavaDoc
95     convertSymbol(String JavaDoc ch)
96     {
97         return getGlobalDeployerContext().convertSymbol(ch);
98     }
99     
100
101        /**
102      * @return
103      */

104     public DeploymentLogger
105     getDeploymentLogger()
106     {
107        if(super.getDeploymentLogger()==null)
108             super.connectDeploymentLogger
109             (getGlobalDeployerContext().getDeploymentLogger());
110        return super.getDeploymentLogger();
111     }
112
113
114     /**
115      * @return
116      */

117     public DestinationDeployerFactory
118     getDestinationDeployerFactory()
119     {
120         if(super.getDestinationDeployerFactory()==null)
121             super.connectDestinationDeployerFactory
122                 (getGlobalDeployerContext().getDestinationDeployerFactory());
123         return super.getDestinationDeployerFactory();
124     }
125
126
127     /**
128      * @return
129      */

130     public ErrorManager
131     getErrorManager()
132     {
133         if(super.getErrorManager()==null)
134             super.connectErrorManager
135             (getGlobalDeployerContext().getErrorManager());
136         return super.getErrorManager();
137     }
138
139
140     public ServerSocket JavaDoc
141     getServerSocket()
142     {
143         //return getGlobalDeployerContext().getServerSocket();
144
if(super.getServerSocket()==null)
145             super.connectServerSocket
146             (getGlobalDeployerContext().getServerSocket());
147         return super.getServerSocket();
148     }
149     
150
151     public ZipEntryRetriever
152     getZipEntryRetriever()
153     {
154         if(super.getZipEntryRetriever()==null)
155             super.connectZipEntryRetriever
156             (getGlobalDeployerContext().getZipEntryRetriever());
157         return super.getZipEntryRetriever();
158     }
159     
160     public void
161     connectZipEntryRetriever(ZipEntryRetriever zipEntryRetriever)
162     {
163         super.connectZipEntryRetriever(zipEntryRetriever);
164     }
165    
166     
167
168 }
169
Popular Tags