KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > verifier > AppVerifyInterface


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
24
25 package com.sun.enterprise.tools.verifier;
26
27 import com.sun.enterprise.deployment.Application;
28 import com.sun.enterprise.deployment.deploy.shared.AbstractArchive;
29 import com.sun.enterprise.deployment.RootDeploymentDescriptor;
30
31 /**
32  * The Verifier Interface for use by the Appserver Deployment Backend
33  */

34 public interface AppVerifyInterface {
35
36    /**
37     * Verify an Application Archive (.ear).
38     * @param application, the application descriptor
39     * @param fileArchive, the Abstract archive representing the EAR
40     * @param outputDir, the directory to which the verifier output should be written
41     *, this argument is optional and the user can choose to pass NULL.
42     * If this argument is NULL, the result would go to the verifier default
43     * output directory "/var/tmp/verifier-results".
44     * @param cl, an initialized ClassLoader which verifier can use to load classes
45     * from the exploded Archive.
46     * @return the ResultReport, the result
47     **/

48
49  public VerifierResults verifyEar(Application application,AbstractArchive fileArchive,
50                                      String JavaDoc outputDir, ClassLoader JavaDoc cl);
51
52    /**
53     * Verify StandAlone Archive (.war/rar/jar).
54     * @param application, the descriptor
55     * @param fileArchive, the Abstract archive representing the EAR
56     * @param outputDir, the directory to which the verifier output should be written
57     *, this argument is optional and the user can choose to pass NULL.
58     * If this argument is NULL, the result would go to the verifier default
59     * output directory "/var/tmp/verifier-results".
60     * @param cl, an initialized ClassLoader which verifier can use to load classes
61     * from the exploded Archive.
62     * @return the ResultReport, the result
63     **/

64  public VerifierResults verifyStdAloneArchive(RootDeploymentDescriptor desc,
65                                               AbstractArchive fileArchive,
66                                               String JavaDoc outputDir, ClassLoader JavaDoc cl);
67 }
68
Popular Tags