KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > share > configbean > ASDDVersion


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * ASDDVersion.java
21  *
22  * Created on February 25, 2004, 2:36 PM
23  */

24
25 package org.netbeans.modules.j2ee.sun.share.configbean;
26
27 import java.math.BigDecimal JavaDoc;
28 import java.math.BigInteger JavaDoc;
29
30 import org.netbeans.modules.j2ee.sun.dd.api.app.SunApplication;
31 import org.netbeans.modules.j2ee.sun.dd.api.client.SunApplicationClient;
32 import org.netbeans.modules.j2ee.sun.dd.api.ejb.SunEjbJar;
33 import org.netbeans.modules.j2ee.sun.dd.api.web.SunWebApp;
34
35 /**
36  * Enumerated types for Application and Web Server versions
37  *
38  * @author Peter Williams
39  */

40 public final class ASDDVersion {
41     
42     /** Represents SunONE Application Server 7.0
43      */

44     public static final ASDDVersion SUN_APPSERVER_7_0 = new ASDDVersion(
45         "7.0", 70, // NOI18N
46
DTDRegistryLink.SUN_WEBAPP_230_DTD_PUBLIC_ID,
47         DTDRegistryLink.SUN_WEBAPP_230_DTD_SYSTEM_ID,
48         SunWebApp.VERSION_2_3_0,
49         230,
50         DTDRegistryLink.SUN_EJBJAR_200_DTD_PUBLIC_ID,
51         DTDRegistryLink.SUN_EJBJAR_200_DTD_SYSTEM_ID,
52         SunEjbJar.VERSION_2_0_0,
53         200,
54         DTDRegistryLink.SUN_CMP_MAPPING_700_DTD_PUBLIC_ID,
55         DTDRegistryLink.SUN_CMP_MAPPING_700_DTD_SYSTEM_ID,
56         "1.0",
57         100,
58         DTDRegistryLink.SUN_APPLICATION_130_DTD_PUBLIC_ID,
59         DTDRegistryLink.SUN_APPLICATION_130_DTD_SYSTEM_ID,
60         SunApplication.VERSION_1_3_0,
61         130,
62         DTDRegistryLink.SUN_APPCLIENT_130_DTD_PUBLIC_ID,
63         DTDRegistryLink.SUN_APPCLIENT_130_DTD_SYSTEM_ID,
64         SunApplicationClient.VERSION_1_3_0,
65         130,
66         "SunONE Application Server 7.0" // NOI18N
67
);
68     
69     /** Represents SunONE Application Server 7.1
70      */

71     // 7.1 not supported by DDAPI yet.
72
// public static final ASDDVersion SUN_APPSERVER_7_1 = new ASDDVersion(
73
// "7.1", 71, // NOI18N
74
// DTDRegistryLink.SUN_WEBAPP_231_DTD_PUBLIC_ID,
75
// DTDRegistryLink.SUN_WEBAPP_231_DTD_SYSTEM_ID,
76
// SunWebApp.VERSION_2_3_1,
77
// 231,
78
// DTDRegistryLink.SUN_EJBJAR_201_DTD_PUBLIC_ID,
79
// DTDRegistryLink.SUN_EJBJAR_201_DTD_SYSTEM_ID,
80
// SunEjbJar.VERSION_2_0_1,
81
// 201,
82
// DTDRegistryLink.SUN_CMP_MAPPING_700_DTD_PUBLIC_ID,
83
// DTDRegistryLink.SUN_CMP_MAPPING_700_DTD_SYSTEM_ID,
84
// "1.0"
85
// 100,
86
// DTDRegistryLink.SUN_APPLICATION_130_DTD_PUBLIC_ID,
87
// DTDRegistryLink.SUN_APPLICATION_130_DTD_SYSTEM_ID,
88
// SunApplication.VERSION_1_3_1,
89
// 131,
90
// DTDRegistryLink.SUN_APPCLIENT_130_DTD_PUBLIC_ID,
91
// DTDRegistryLink.SUN_APPCLIENT_130_DTD_SYSTEM_ID,
92
// SunApplicationClient.VERSION_1_3_1,
93
// 131,
94
// "SunONE Application Server 7.1" // NOI18N
95
// );
96

97     /** Represents Sun Java System Application Server 8.0
98      */

99     public static final ASDDVersion SUN_APPSERVER_8_0 = new ASDDVersion(
100         "8.0", 80, // NOI18N
101
DTDRegistryLink.SUN_WEBAPP_240_DTD_PUBLIC_ID,
102         DTDRegistryLink.SUN_WEBAPP_240_DTD_SYSTEM_ID,
103         SunWebApp.VERSION_2_4_0,
104         240,
105         DTDRegistryLink.SUN_EJBJAR_210_DTD_PUBLIC_ID,
106         DTDRegistryLink.SUN_EJBJAR_210_DTD_SYSTEM_ID,
107         SunEjbJar.VERSION_2_1_0,
108         210,
109         DTDRegistryLink.SUN_CMP_MAPPING_800_DTD_PUBLIC_ID,
110         DTDRegistryLink.SUN_CMP_MAPPING_800_DTD_SYSTEM_ID,
111         "1.1",
112         110,
113         DTDRegistryLink.SUN_APPLICATION_140_DTD_PUBLIC_ID,
114         DTDRegistryLink.SUN_APPLICATION_140_DTD_SYSTEM_ID,
115         SunApplication.VERSION_1_4_0,
116         140,
117         DTDRegistryLink.SUN_APPCLIENT_140_DTD_PUBLIC_ID,
118         DTDRegistryLink.SUN_APPCLIENT_140_DTD_SYSTEM_ID,
119         SunApplicationClient.VERSION_1_4_0,
120         140,
121         "Sun Java System Application Server 8.0" // NOI18N
122
);
123     
124     
125     /** Represents Sun Java System Application Server 8.1 (8.2 is the same)
126      */

127     public static final ASDDVersion SUN_APPSERVER_8_1 = new ASDDVersion(
128         "8.1", 81, // NOI18N
129
DTDRegistryLink.SUN_WEBAPP_241_DTD_PUBLIC_ID,
130         DTDRegistryLink.SUN_WEBAPP_241_DTD_SYSTEM_ID,
131         SunWebApp.VERSION_2_4_1,
132         241,
133         DTDRegistryLink.SUN_EJBJAR_211_DTD_PUBLIC_ID,
134         DTDRegistryLink.SUN_EJBJAR_211_DTD_SYSTEM_ID,
135         SunEjbJar.VERSION_2_1_1,
136         211,
137         DTDRegistryLink.SUN_CMP_MAPPING_810_DTD_PUBLIC_ID,
138         DTDRegistryLink.SUN_CMP_MAPPING_810_DTD_SYSTEM_ID,
139         "1.2",
140         120,
141         DTDRegistryLink.SUN_APPLICATION_140_DTD_PUBLIC_ID,
142         DTDRegistryLink.SUN_APPLICATION_140_DTD_SYSTEM_ID,
143         SunApplication.VERSION_1_4_0,
144         140,
145         DTDRegistryLink.SUN_APPCLIENT_141_DTD_PUBLIC_ID,
146         DTDRegistryLink.SUN_APPCLIENT_141_DTD_SYSTEM_ID,
147         SunApplicationClient.VERSION_1_4_1,
148         141,
149         "Sun Java System Application Server 8.1" // NOI18N
150
);
151     
152     /** Represents Sun Java System Application Server 9.0
153      */

154     public static final ASDDVersion SUN_APPSERVER_9_0 = new ASDDVersion(
155         "9.0", 90, // NOI18N
156
DTDRegistryLink.SUN_WEBAPP_250_DTD_PUBLIC_ID,
157         DTDRegistryLink.SUN_WEBAPP_250_DTD_SYSTEM_ID,
158         SunWebApp.VERSION_2_5_0,
159         250,
160         DTDRegistryLink.SUN_EJBJAR_300_DTD_PUBLIC_ID,
161         DTDRegistryLink.SUN_EJBJAR_300_DTD_SYSTEM_ID,
162         SunEjbJar.VERSION_3_0_0,
163         300,
164         DTDRegistryLink.SUN_CMP_MAPPING_810_DTD_PUBLIC_ID,
165         DTDRegistryLink.SUN_CMP_MAPPING_810_DTD_SYSTEM_ID,
166         "1.2",
167         120,
168         DTDRegistryLink.SUN_APPLICATION_500_DTD_PUBLIC_ID,
169         DTDRegistryLink.SUN_APPLICATION_500_DTD_SYSTEM_ID,
170         SunApplication.VERSION_5_0_0,
171         500,
172         DTDRegistryLink.SUN_APPCLIENT_500_DTD_PUBLIC_ID,
173         DTDRegistryLink.SUN_APPCLIENT_500_DTD_SYSTEM_ID,
174         SunApplicationClient.VERSION_5_0_0,
175         500,
176         "Sun Java System Application Server 9.0" // NOI18N
177
);
178     
179     /** Represents Sun Java System Application Server 9.0
180      */

181     public static final ASDDVersion SUN_WEBSERVER_7_0 = new ASDDVersion(
182         "8.1", 81, // NOI18N
183
DTDRegistryLink.SUN_WEBAPP_241_DTD_PUBLIC_ID,
184         DTDRegistryLink.SUN_WEBAPP_241_DTD_SYSTEM_ID,
185         SunWebApp.VERSION_2_4_1,
186         241,
187         "Sun Java System Web Server 7.0" // NOI18N
188
);
189     
190     /** Ordered list of appserver versions.
191      */

192     public static final ASDDVersion asDDVersions[] = {
193         SUN_APPSERVER_7_0,
194 // SUN_APPSERVER_7_1,
195
SUN_APPSERVER_8_0,
196         SUN_APPSERVER_8_1,
197         SUN_APPSERVER_9_0
198     };
199     
200     /** Ordered list of webserver versions.
201      */

202     public static final ASDDVersion webServerDDVersions[] = {
203         SUN_WEBSERVER_7_0
204     };
205     
206     
207     /** -----------------------------------------------------------------------
208      * Implementation
209      */

210     
211     private final String JavaDoc version;
212     private final BigDecimal JavaDoc numericVersion;
213     
214     private final String JavaDoc webAppPublicId;
215     private final String JavaDoc webAppSystemId;
216     private final String JavaDoc servletVersionString;
217     private final BigDecimal JavaDoc servletVersion;
218     
219     private final String JavaDoc ejbJarPublicId;
220     private final String JavaDoc ejbJarSystemId;
221     private final String JavaDoc ejbVersionString;
222     private final BigDecimal JavaDoc ejbVersion;
223     
224     private final String JavaDoc cmpMappingsPublicId;
225     private final String JavaDoc cmpMappingsSystemId;
226     private final String JavaDoc cmpMappingsVersionString;
227     private final BigDecimal JavaDoc cmpMappingsVersion;
228     
229     private final String JavaDoc appPublicId;
230     private final String JavaDoc appSystemId;
231     private final String JavaDoc appVersionString;
232     private final BigDecimal JavaDoc appVersion;
233
234     private final String JavaDoc appClientPublicId;
235     private final String JavaDoc appClientSystemId;
236     private final String JavaDoc appClientVersionString;
237     private final BigDecimal JavaDoc appClientVersion;
238
239     private final String JavaDoc displayName;
240     
241     
242     /** Creates a new instance of ASDDVersion for WebServier (Servlet spec only)
243      */

244     private ASDDVersion(String JavaDoc v, int nv,
245             String JavaDoc wapi, String JavaDoc wasi, String JavaDoc svs, int sv,
246             String JavaDoc dn) {
247         this(v, nv,
248                 wapi, wasi, svs, sv,
249                 "", "", "", 0,
250                 "", "", "", 0,
251                 "", "", "", 0,
252                 "", "", "", 0,
253                 dn);
254     }
255     
256     /** Creates a new instance of ASDDVersion
257      */

258     private ASDDVersion(String JavaDoc v, int nv,
259             String JavaDoc wapi, String JavaDoc wasi, String JavaDoc svs, int sv,
260             String JavaDoc ejpi, String JavaDoc ejsi, String JavaDoc ejbvs, int ejbv,
261             String JavaDoc cmpi, String JavaDoc cmsi, String JavaDoc cmpvs, int cmpv,
262             String JavaDoc api, String JavaDoc asi, String JavaDoc appvs, int appv,
263             String JavaDoc acpi, String JavaDoc acsi, String JavaDoc acvs, int acpv,
264             String JavaDoc dn) {
265         version = v;
266         numericVersion = new BigDecimal JavaDoc(BigInteger.valueOf(nv), 2);
267         
268         webAppPublicId = wapi;
269         webAppSystemId = wasi;
270         servletVersionString = svs;
271         servletVersion = new BigDecimal JavaDoc(BigInteger.valueOf(sv), 2);
272         
273         ejbJarPublicId = ejpi;
274         ejbJarSystemId = ejsi;
275         ejbVersionString = ejbvs;
276         ejbVersion = new BigDecimal JavaDoc(BigInteger.valueOf(ejbv), 2);
277         
278         cmpMappingsPublicId = cmpi;
279         cmpMappingsSystemId = cmsi;
280         cmpMappingsVersionString = cmpvs;
281         cmpMappingsVersion = new BigDecimal JavaDoc(BigInteger.valueOf(cmpv), 2);
282         
283         appPublicId = api;
284         appSystemId = asi;
285         appVersionString = appvs;
286         appVersion = new BigDecimal JavaDoc(BigInteger.valueOf(appv), 2);
287
288         appClientPublicId = acpi;
289         appClientSystemId = acsi;
290         appClientVersionString = acvs;
291         appClientVersion = new BigDecimal JavaDoc(BigInteger.valueOf(acpv), 2);
292
293         displayName = dn;
294     }
295     
296     /** Display name for property combo chooser (or whereever else needed.)
297      */

298     public String JavaDoc toString() {
299         return displayName;
300     }
301     
302     /** Comparator implementation that works only on ASDDVersion objects
303      *
304      * @param obj ASDDVersion to compare with.
305      * @return -1, 0, or 1 if this version is less than, equal to, or greater
306      * than the version passed in as an argument.
307      * @throws ClassCastException if obj is not a ASDDVersion object.
308      */

309     public int compareTo(Object JavaDoc obj) {
310         ASDDVersion target = (ASDDVersion) obj;
311         return numericVersion.compareTo(target.numericVersion);
312     }
313
314     /** Retrieve the proper ASDDVersion object for the specified version (string format).
315      */

316     public static final ASDDVersion getASDDVersion(String JavaDoc version) {
317         ASDDVersion result = null;
318         
319         if(SUN_APPSERVER_7_0.toString().equals(version)) {
320             result = SUN_APPSERVER_7_0;
321 // } else if(SUN_APPSERVER_7_1.toString().equals(version)) {
322
// result = SUN_APPSERVER_7_1;
323
} else if(SUN_APPSERVER_8_0.toString().equals(version)) {
324             result = SUN_APPSERVER_8_0;
325         } else if(SUN_APPSERVER_8_1.toString().equals(version)) {
326             result = SUN_APPSERVER_8_1;
327         } else if(SUN_APPSERVER_9_0.toString().equals(version)) {
328             result = SUN_APPSERVER_9_0;
329         }
330         
331         return result;
332     }
333     
334     /** Retrieve the proper ASDDVersion object for the specified version (BigDecimal format).
335      */

336     public static final ASDDVersion getASDDVersion(BigDecimal JavaDoc version) {
337         ASDDVersion result = null;
338         
339         if(SUN_APPSERVER_7_0.toString().compareTo(version) == 0) {
340             result = SUN_APPSERVER_7_0;
341 // } else if(SUN_APPSERVER_7_1.toString().compareTo(version) == 0) {
342
// result = SUN_APPSERVER_7_1;
343
} else if(SUN_APPSERVER_8_0.toString().compareTo(version) == 0) {
344             result = SUN_APPSERVER_8_0;
345         } else if(SUN_APPSERVER_8_1.toString().compareTo(version) == 0) {
346             result = SUN_APPSERVER_8_1;
347         } else if(SUN_APPSERVER_9_0.toString().compareTo(version) == 0) {
348             result = SUN_APPSERVER_9_0;
349         }
350         
351         return result;
352     }
353     
354     /** Retrieve the proper ASDDVersion object for the specified version (BigDecimal format).
355      */

356     public static final ASDDVersion getASDDVersionFromServletVersion(BigDecimal JavaDoc version) {
357         ASDDVersion result = null;
358         
359         if(SUN_APPSERVER_7_0.getNumericWebAppVersion().compareTo(version) == 0) {
360             result = SUN_APPSERVER_7_0;
361 // } else if(SUN_APPSERVER_7_1.getNumericWebAppVersion().compareTo(version) == 0) {
362
// result = SUN_APPSERVER_7_1;
363
} else if(SUN_APPSERVER_8_0.getNumericWebAppVersion().compareTo(version) == 0) {
364             result = SUN_APPSERVER_8_0;
365         } else if(SUN_APPSERVER_8_1.getNumericWebAppVersion().compareTo(version) == 0) {
366             result = SUN_APPSERVER_8_1;
367         } else if(SUN_APPSERVER_9_0.getNumericWebAppVersion().compareTo(version) == 0) {
368             result = SUN_APPSERVER_9_0;
369         }
370         
371         return result;
372     }
373     
374     /** Retrieve the proper ASDDVersion object for the specified version (BigDecimal format).
375      */

376     public static final ASDDVersion getASDDVersionFromEjbVersion(BigDecimal JavaDoc version) {
377         ASDDVersion result = null;
378         
379         if(SUN_APPSERVER_7_0.getNumericEjbJarVersion().compareTo(version) == 0) {
380             result = SUN_APPSERVER_7_0;
381 // } else if(SUN_APPSERVER_7_1.getNumericEjbJarVersion().compareTo(version) == 0) {
382
// result = SUN_APPSERVER_7_1;
383
} else if(SUN_APPSERVER_8_0.getNumericEjbJarVersion().compareTo(version) == 0) {
384             result = SUN_APPSERVER_8_0;
385         } else if(SUN_APPSERVER_8_1.getNumericEjbJarVersion().compareTo(version) == 0) {
386             result = SUN_APPSERVER_8_1;
387         } else if(SUN_APPSERVER_9_0.getNumericEjbJarVersion().compareTo(version) == 0) {
388             result = SUN_APPSERVER_9_0;
389         }
390         
391         return result;
392     }
393     
394     /** Retrieve the proper ASDDVersion object for the specified version (BigDecimal format).
395      */

396     public static final ASDDVersion getASDDVersionFromAppVersion(BigDecimal JavaDoc version) {
397         ASDDVersion result = null;
398         
399         if(SUN_APPSERVER_7_0.getNumericApplicationVersion().compareTo(version) == 0) {
400             result = SUN_APPSERVER_7_0;
401 // } else if(SUN_APPSERVER_7_1.getNumericApplicationVersion().compareTo(version) == 0) {
402
// result = SUN_APPSERVER_7_1;
403
// 8.0 and 8.1 use the same DTD, pick 8.1 only here. We can amend this later
404
// if we want to somehow properly support 8.0 but it's not a requirement right now.
405
// } else if(SUN_APPSERVER_8_0.getNumericApplicationVersion().compareTo(version) == 0) {
406
// result = SUN_APPSERVER_8_0;
407
} else if(SUN_APPSERVER_8_1.getNumericApplicationVersion().compareTo(version) == 0) {
408             result = SUN_APPSERVER_8_1;
409         } else if(SUN_APPSERVER_9_0.getNumericApplicationVersion().compareTo(version) == 0) {
410             result = SUN_APPSERVER_9_0;
411         }
412         
413         return result;
414     }
415
416     /** Retrieve the proper ASDDVersion object for the specified version (BigDecimal format).
417      */

418     public static final ASDDVersion getASDDVersionFromAppClientVersion(BigDecimal JavaDoc version) {
419         ASDDVersion result = null;
420         if(SUN_APPSERVER_7_0.getNumericAppClientVersion().compareTo(version) == 0) {
421             result = SUN_APPSERVER_7_0;
422 // } else if(SUN_APPSERVER_7_1.getNumericAppClientVersion().compareTo(version) == 0) {
423
// result = SUN_APPSERVER_7_1;
424
} else if(SUN_APPSERVER_8_0.getNumericAppClientVersion().compareTo(version) == 0) {
425             result = SUN_APPSERVER_8_0;
426         } else if(SUN_APPSERVER_8_1.getNumericAppClientVersion().compareTo(version) == 0) {
427             result = SUN_APPSERVER_8_1;
428         } else if(SUN_APPSERVER_9_0.getNumericAppClientVersion().compareTo(version) == 0) {
429             result = SUN_APPSERVER_9_0;
430         }
431         return result;
432     }
433     
434     /** Sun web app version as string, from DD API
435      */

436     public final String JavaDoc getWebAppVersionAsString() {
437         return servletVersionString;
438     }
439     
440     /** Sun ejb jar version as string, from DD API
441      */

442     public final String JavaDoc getEjbJarVersionAsString() {
443         return ejbVersionString;
444     }
445     
446     /** Sun cmp mappings version as string, from DD API
447      */

448     public final String JavaDoc getCmpMappingsVersionAsString() {
449         return cmpMappingsVersionString;
450     }
451     
452     /** Sun application version as string, from DD API
453      */

454     public final String JavaDoc getApplicationVersionAsString() {
455         return appVersionString;
456     }
457     
458     /** Sun application client version as string, from DD API
459      */

460     public final String JavaDoc getAppClientVersionAsString() {
461         return appClientVersionString;
462     }
463     
464     /** Version, in the format expected by the Sun DD API
465      */

466     public final BigDecimal JavaDoc getNumericServerVersion() {
467         return numericVersion;
468     }
469     
470     /** Version, in the format expected by the Sun DD API
471      */

472     public final BigDecimal JavaDoc getNumericWebAppVersion() {
473         return servletVersion;
474     }
475
476     /** Version, in the format expected by the Sun DD API
477      */

478     public final BigDecimal JavaDoc getNumericEjbJarVersion() {
479         return ejbVersion;
480     }
481
482     /** Version, in the format expected by the Sun DD API
483      */

484     public final BigDecimal JavaDoc getNumericCmpMappingsVersion() {
485         return cmpMappingsVersion;
486     }
487
488     /** Version, in the format expected by the Sun DD API
489      */

490     public final BigDecimal JavaDoc getNumericApplicationVersion() {
491         return appVersion;
492     }
493     
494     /** Version, in the format expected by the Sun DD API
495      */

496     public final BigDecimal JavaDoc getNumericAppClientVersion() {
497         return appClientVersion;
498     }
499
500     /** Returns the public id for sun-web-app.xml for this appserver version
501      */

502     public final String JavaDoc getSunWebAppPublicId() {
503         return webAppPublicId;
504     }
505     
506     /** Returns the system id for sun-web-app.xml for this appserver version
507      */

508     public final String JavaDoc getSunWebAppSystemId() {
509         return webAppSystemId;
510     }
511
512     /** Returns the public id for sun-ejb-jar.xml for this appserver version
513      */

514     public final String JavaDoc getSunEjbJarPublicId() {
515         return ejbJarPublicId;
516     }
517     
518     /** Returns the system id for sun-ejb-jar.xml for this appserver version
519      */

520     public final String JavaDoc getSunEjbJarSystemId() {
521         return ejbJarSystemId;
522     }
523
524     /** Returns the public id for sun-cmp-mappings.xml for this appserver version
525      */

526     public final String JavaDoc getSunCmpMappingsPublicId() {
527         return cmpMappingsPublicId;
528     }
529     
530     /** Returns the system id for sun-cmp-mappings.xml for this appserver version
531      */

532     public final String JavaDoc getSunCmpMappingsSystemId() {
533         return cmpMappingsSystemId;
534     }
535     
536     /** Returns the public id for sun-application.xml for this appserver version
537      */

538     public final String JavaDoc getSunApplicationPublicId() {
539         return appPublicId;
540     }
541     
542     /** Returns the system id for sun-application.xml for this appserver version
543      */

544     public final String JavaDoc getSunApplicationSystemId() {
545         return appSystemId;
546     }
547     
548     /** Returns the public id for sun-application.xml for this appserver version
549      */

550     public final String JavaDoc getSunAppClientPublicId() {
551         return appClientPublicId;
552     }
553     
554     /** Returns the system id for sun-application.xml for this appserver version
555      */

556     public final String JavaDoc getSunAppClientSystemId() {
557         return appClientSystemId;
558     }
559     
560     /** Return the correct storage bean factory for this version
561      */

562     public final StorageBeanFactory getStorageFactory() {
563         return StorageBeanFactory.getStorageBeanFactory(this);
564     }
565 }
566
Popular Tags