KickJava   Java API By Example, From Geeks To Geeks.

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


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 AdvancedDeploymentManager implements DeploymentManager JavaDoc
33 {
34    private boolean connected = true;
35    private String JavaDoc uri;
36
37
38    /**
39     * Constructor for the BasicDeploymentManager object
40     *
41     * @param uri Description of the Parameter
42     */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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