KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > terracotta > dso > views > AdditionalBootJarClassesWrapper


1 /*
2  * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package org.terracotta.dso.views;
5
6 import com.terracottatech.config.AdditionalBootJarClasses;
7 import com.terracottatech.config.DsoApplication;
8
9 public class AdditionalBootJarClassesWrapper {
10   private DsoApplication fApp;
11   
12   AdditionalBootJarClassesWrapper(DsoApplication dsoApp) {
13     fApp = dsoApp;
14   }
15   
16   int sizeOfIncludeArray() {
17     AdditionalBootJarClasses abjc = fApp.getAdditionalBootJarClasses();
18     return abjc != null ? abjc.sizeOfIncludeArray() : 0;
19   }
20   
21   String JavaDoc getIncludeArray(int i) {
22     AdditionalBootJarClasses abjc = fApp.getAdditionalBootJarClasses();
23     return abjc != null ? abjc.getIncludeArray(i) : null;
24   }
25   
26   void removeInclude(int i) {
27     AdditionalBootJarClasses abjc = fApp.getAdditionalBootJarClasses();
28     if(abjc != null) {
29       abjc.removeInclude(i);
30     }
31     if(sizeOfIncludeArray() == 0) {
32       fApp.unsetAdditionalBootJarClasses();
33     }
34   }
35 }
36
Popular Tags