KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > interfaces > ClientJarMaker


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.deployment.interfaces;
24
25 import com.sun.enterprise.deployment.deploy.shared.AbstractArchive;
26 import com.sun.enterprise.deployment.RootDeploymentDescriptor;
27 import com.sun.enterprise.util.zip.ZipItem;
28
29 import java.io.IOException JavaDoc;
30 import java.util.Properties JavaDoc;
31
32 /**
33  * This interface defines behaviour necessary for creating a appclient container
34  * compliant jar file.
35  *
36  * @author Jerome Dochez
37  */

38 public interface ClientJarMaker {
39
40     /**
41     * creates the appclient container jar file
42     * @param descriptor is the loaded module's deployment descriptor
43     * @param source is the abstract archive for the source module deployed
44     * @param target is the abstract archive for the desired appclient container jar file
45     * @param stubs are the stubs generated by the deployment codegen
46     * @param props is a properties collection to pass implementation parameters
47     *
48     * @throws IOException when the jar file creation fail
49     */

50     public void create(RootDeploymentDescriptor descriptor, AbstractArchive source,
51             AbstractArchive target, ZipItem[] stubs, Properties JavaDoc props)
52         throws IOException JavaDoc;
53
54         /**
55         * creates the appclient container jar file
56         * @param descriptor is the loaded module's deployment descriptor
57         * @param source is the abstract archive for the source module deployed
58         * @param source2 is the abstract archive for the generated xml directory
59         * @param target is the abstract archive for the desired appclient container jar file
60         * @param stubs are the stubs generated by the deployment codegen
61         * @param props is a properties collection to pass implementation parameters
62         *
63         * @throws IOException when the jar file creation fail
64         */

65         public void create(RootDeploymentDescriptor descriptor, AbstractArchive source, AbstractArchive source2, AbstractArchive target, ZipItem[] stubs, Properties JavaDoc props)
66                 throws IOException JavaDoc;
67
68 }
69
Popular Tags