KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > enterprise > deploy > spi > BasicDeploymentManager


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package test.enterprise.deploy.spi;
8
9 import java.io.File JavaDoc;
10 import java.io.InputStream JavaDoc;
11 import java.util.Locale JavaDoc;
12
13 import javax.enterprise.deploy.model.DeployableObject JavaDoc;
14 import javax.enterprise.deploy.shared.DConfigBeanVersionType JavaDoc;
15 import javax.enterprise.deploy.shared.ModuleType JavaDoc;
16 import javax.enterprise.deploy.spi.DeploymentConfiguration JavaDoc;
17 import javax.enterprise.deploy.spi.DeploymentManager JavaDoc;
18 import javax.enterprise.deploy.spi.Target JavaDoc;
19 import javax.enterprise.deploy.spi.TargetModuleID JavaDoc;
20 import javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException JavaDoc;
21 import javax.enterprise.deploy.spi.exceptions.InvalidModuleException JavaDoc;
22 import javax.enterprise.deploy.spi.exceptions.TargetException JavaDoc;
23 import javax.enterprise.deploy.spi.status.ProgressObject JavaDoc;
24
25
26 /**
27  * Description of the Class
28  *
29  * @author Laurent Etiemble
30  * @version $Revision: 1.1 $
31  */

32 public class BasicDeploymentManager implements DeploymentManager JavaDoc
33 {
34    private boolean connected = false;
35
36    private String JavaDoc uri;
37
38
39    /**
40     * Constructor for the BasicDeploymentManager object
41     *
42     * @param uri Description of the Parameter
43     */

44    public BasicDeploymentManager(String JavaDoc uri)
45    {
46       this.uri = uri;
47    }
48
49
50    /**
51     * Description of the Method
52     *
53     * @param dObj Description of the Parameter
54     * @return Description of the Return Value
55     * @exception InvalidModuleException Description of the Exception
56     */

57    public DeploymentConfiguration JavaDoc createConfiguration(DeployableObject JavaDoc dObj)
58       throws InvalidModuleException JavaDoc
59    {
60       return null;
61    }
62
63
64    /**
65     * Description of the Method
66     *
67     * @param targetList Description of the Parameter
68     * @param moduleArchive Description of the Parameter
69     * @param deploymentPlan Description of the Parameter
70     * @return Description of the Return Value
71     * @exception IllegalStateException Description of the Exception
72     */

73    public ProgressObject JavaDoc distribute(Target JavaDoc[] targetList, File JavaDoc moduleArchive, File JavaDoc deploymentPlan)
74       throws IllegalStateException JavaDoc
75    {
76       return null;
77    }
78
79
80    /**
81     * Description of the Method
82     *
83     * @param targetList Description of the Parameter
84     * @param moduleArchive Description of the Parameter
85     * @param deploymentPlan Description of the Parameter
86     * @return Description of the Return Value
87     * @exception IllegalStateException Description of the Exception
88     */

89    public ProgressObject JavaDoc distribute(Target JavaDoc[] targetList, InputStream JavaDoc moduleArchive, InputStream JavaDoc deploymentPlan)
90       throws IllegalStateException JavaDoc
91    {
92       return null;
93    }
94
95
96    /**
97     * Gets the availableModules attribute of the BasicDeploymentManager object
98     *
99     * @param moduleType Description of the Parameter
100     * @param targetList Description of the Parameter
101     * @return The availableModules value
102     * @exception TargetException Description of the Exception
103     * @exception IllegalStateException Description of the Exception
104     */

105    public TargetModuleID JavaDoc[] getAvailableModules(ModuleType JavaDoc moduleType, Target JavaDoc[] targetList)
106       throws TargetException JavaDoc, IllegalStateException JavaDoc
107    {
108       return null;
109    }
110
111
112    /**
113     * Gets the currentLocale attribute of the BasicDeploymentManager object
114     *
115     * @return The currentLocale value
116     */

117    public Locale JavaDoc getCurrentLocale()
118    {
119       return null;
120    }
121
122
123    /**
124     * Gets the dConfigBeanVersion attribute of the BasicDeploymentManager object
125     *
126     * @return The dConfigBeanVersion value
127     */

128    public DConfigBeanVersionType JavaDoc getDConfigBeanVersion()
129    {
130       return null;
131    }
132
133
134    /**
135     * Gets the defaultLocale attribute of the BasicDeploymentManager object
136     *
137     * @return The defaultLocale value
138     */

139    public Locale JavaDoc getDefaultLocale()
140    {
141       return null;
142    }
143
144
145    /**
146     * Gets the nonRunningModules attribute of the BasicDeploymentManager object
147     *
148     * @param moduleType Description of the Parameter
149     * @param targetList Description of the Parameter
150     * @return The nonRunningModules value
151     * @exception TargetException Description of the Exception
152     * @exception IllegalStateException Description of the Exception
153     */

154    public TargetModuleID JavaDoc[] getNonRunningModules(ModuleType JavaDoc moduleType, Target JavaDoc[] targetList)
155       throws TargetException JavaDoc, IllegalStateException JavaDoc
156    {
157       return null;
158    }
159
160
161    /**
162     * Gets the runningModules attribute of the BasicDeploymentManager object
163     *
164     * @param moduleType Description of the Parameter
165     * @param targetList Description of the Parameter
166     * @return The runningModules value
167     * @exception TargetException Description of the Exception
168     * @exception IllegalStateException Description of the Exception
169     */

170    public TargetModuleID JavaDoc[] getRunningModules(ModuleType JavaDoc moduleType, Target JavaDoc[] targetList)
171       throws TargetException JavaDoc, IllegalStateException JavaDoc
172    {
173       return null;
174    }
175
176
177    /**
178     * Gets the supportedLocales attribute of the BasicDeploymentManager object
179     *
180     * @return The supportedLocales value
181     */

182    public Locale JavaDoc[] getSupportedLocales()
183    {
184       return null;
185    }
186
187
188    /**
189     * Gets the targets attribute of the BasicDeploymentManager object
190     *
191     * @return The targets value
192     * @exception IllegalStateException Description of the Exception
193     */

194    public Target JavaDoc[] getTargets()
195       throws IllegalStateException JavaDoc
196    {
197       return null;
198    }
199
200
201    /**
202     * Gets the dConfigBeanVersionSupported attribute of the BasicDeploymentManager
203     * object
204     *
205     * @param version Description of the Parameter
206     * @return The dConfigBeanVersionSupported value
207     */

208    public boolean isDConfigBeanVersionSupported(DConfigBeanVersionType JavaDoc version)
209    {
210       return false;
211    }
212
213
214    /**
215     * Gets the localeSupported attribute of the BasicDeploymentManager object
216     *
217     * @param locale Description of the Parameter
218     * @return The localeSupported value
219     */

220    public boolean isLocaleSupported(Locale JavaDoc locale)
221    {
222       return false;
223    }
224
225
226    /**
227     * Gets the redeploySupported attribute of the BasicDeploymentManager object
228     *
229     * @return The redeploySupported value
230     */

231    public boolean isRedeploySupported()
232    {
233       return false;
234    }
235
236
237    /**
238     * Description of the Method
239     *
240     * @param moduleIDList Description of the Parameter
241     * @param moduleArchive Description of the Parameter
242     * @param deploymentPlan Description of the Parameter
243     * @return Description of the Return Value
244     * @exception UnsupportedOperationException Description of the Exception
245     * @exception IllegalStateException Description of the Exception
246     */

247    public ProgressObject JavaDoc redeploy(TargetModuleID JavaDoc[] moduleIDList, File JavaDoc moduleArchive, File JavaDoc deploymentPlan)
248       throws UnsupportedOperationException JavaDoc, IllegalStateException JavaDoc
249    {
250       return null;
251    }
252
253
254    /**
255     * Description of the Method
256     *
257     * @param moduleIDList Description of the Parameter
258     * @param moduleArchive Description of the Parameter
259     * @param deploymentPlan Description of the Parameter
260     * @return Description of the Return Value
261     * @exception UnsupportedOperationException Description of the Exception
262     * @exception IllegalStateException Description of the Exception
263     */

264    public ProgressObject JavaDoc redeploy(TargetModuleID JavaDoc[] moduleIDList, InputStream JavaDoc moduleArchive, InputStream JavaDoc deploymentPlan)
265       throws UnsupportedOperationException JavaDoc, IllegalStateException JavaDoc
266    {
267       return null;
268    }
269
270
271    /** Description of the Method */
272    public void release() { }
273
274
275    /**
276     * Sets the dConfigBeanVersion attribute of the BasicDeploymentManager object
277     *
278     * @param version The new dConfigBeanVersion
279     * value
280     * @exception DConfigBeanVersionUnsupportedException Description of the Exception
281     */

282    public void setDConfigBeanVersion(DConfigBeanVersionType JavaDoc version)
283       throws DConfigBeanVersionUnsupportedException JavaDoc { }
284
285
286    /**
287     * Sets the locale attribute of the BasicDeploymentManager object
288     *
289     * @param locale The new locale value
290     * @exception UnsupportedOperationException Description of the Exception
291     */

292    public void setLocale(Locale JavaDoc locale)
293       throws UnsupportedOperationException JavaDoc { }
294
295
296    /**
297     * Description of the Method
298     *
299     * @param moduleIDList Description of the Parameter
300     * @return Description of the Return Value
301     * @exception IllegalStateException Description of the Exception
302     */

303    public ProgressObject JavaDoc start(TargetModuleID JavaDoc[] moduleIDList)
304       throws IllegalStateException JavaDoc
305    {
306       return null;
307    }
308
309
310    /**
311     * Description of the Method
312     *
313     * @param moduleIDList Description of the Parameter
314     * @return Description of the Return Value
315     * @exception IllegalStateException Description of the Exception
316     */

317    public ProgressObject JavaDoc stop(TargetModuleID JavaDoc[] moduleIDList)
318       throws IllegalStateException JavaDoc
319    {
320       return null;
321    }
322
323
324    /**
325     * Description of the Method
326     *
327     * @param moduleIDList Description of the Parameter
328     * @return Description of the Return Value
329     * @exception IllegalStateException Description of the Exception
330     */

331    public ProgressObject JavaDoc undeploy(TargetModuleID JavaDoc[] moduleIDList)
332       throws IllegalStateException JavaDoc
333    {
334       return null;
335    }
336 }
337
Popular Tags