KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > tool > archive > EjbPlan


1
2 /*
3  * Enhydra Java Application Server Project
4  *
5  * The contents of this file are subject to the Enhydra Public License
6  * Version 1.1 (the "License"); you may not use this file except in
7  * compliance with the License. You may obtain a copy of the License on
8  * the Enhydra web site ( http://www.enhydra.org/ ).
9  *
10  * Software distributed under the License is distributed on an "AS IS"
11  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
12  * the License for the specific terms governing rights and limitations
13  * under the License.
14  *
15  * The Initial Developer of the Enhydra Application Server is Lutris
16  * Technologies, Inc. The Enhydra Application Server and portions created
17  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
18  * All Rights Reserved.
19  *
20  * Contributor(s):
21  * Paul Mahar
22  *
23  */

24 package org.enhydra.tool.archive;
25
26 // Toolbox Imports
27
import org.enhydra.tool.common.FileUtil;
28 import org.enhydra.tool.common.PathHandle;
29 import org.enhydra.tool.common.ResUtil;
30
31 // Standard imports
32
import java.io.File JavaDoc;
33 import java.io.FileFilter JavaDoc;
34 import java.util.ResourceBundle JavaDoc;
35
36 //
37
public class EjbPlan extends JarPlan {
38
39     //
40
private boolean createClient = true;
41
42     public EjbPlan() {
43         super();
44         Descriptor[] initDD = new Descriptor[2];
45
46         initDD[0] = new Descriptor(true, Descriptor.EJB);
47         initDD[1] = new Descriptor(false, Descriptor.JONAS_EJB);
48         setDescriptors(initDD);
49     }
50
51     public boolean isCreateClient() {
52         return createClient;
53     }
54
55     public void setCreateClient(boolean b) {
56         createClient = b;
57     }
58
59     public boolean equals(Object JavaDoc comp) {
60         EjbPlan plan = null;
61         boolean equal = false;
62
63         if (comp instanceof EjbPlan) {
64             plan = (EjbPlan) comp;
65             equal = super.equals(comp);
66         }
67         if (equal) {
68             if (!(plan.isCreateClient() == isCreateClient())) {
69                 equal = false;
70             }
71         }
72         return equal;
73     }
74
75 }
76
Popular Tags