KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > deploy > DeploymentSource


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  * DeploymentSource.java
26  *
27  * Created on April 8, 2004, 9:13 AM
28  */

29
30 package com.sun.appserv.management.deploy;
31
32 import java.io.File JavaDoc;
33 import java.io.IOException JavaDoc;
34 import java.util.jar.JarInputStream JavaDoc;
35
36 import com.sun.appserv.management.base.MapCapable;
37
38 /**
39     Abstraction for archives delivery for a deployment operation
40
41     This interface may be instantiated by using routines in
42     {@link com.sun.appserv.management.deploy.DeploymentSupport}
43  */

44 public interface DeploymentSource extends MapCapable
45 {
46     /**
47         Value of the MAP_CAPABLE_TYPE_KEY when turned into a Map.
48      */

49     public final static String JavaDoc DEPLOYMENT_SOURCE_CLASS_NAME =
50             "com.sun.appserv.management.deploy.DeploymentSource";
51             
52     /**
53      * (Optional)
54      * @return the archive as a file handle if possible
55      * otherwise return null.
56      */

57     public File JavaDoc getArchive();
58        
59     /**
60      * @return a JarInputStream on the archive.
61      */

62     public JarInputStream JavaDoc getArchiveAsStream()
63         throws IOException JavaDoc;
64     
65     /**
66      * @return true if this archive is complete or false
67      * if it is a partial delivery (redeploy).
68      */

69     public boolean isCompleteArchive();
70     
71     /**
72      * In case of a partial delivery.
73      * @return entries added iterator
74      */

75     public String JavaDoc[] getEntriesAdded();
76     
77     /**
78      * In case of a partial archive delivery.
79      * @return entries removed iterator
80      */

81     public String JavaDoc[] getEntriesRemoved();
82     
83     /**
84      * In case of a partial delivery.
85      * @return entries deleted iterator
86      */

87     public String JavaDoc[] getEntriesDeleted();
88 }
89
Popular Tags