KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > io > DescriptorConstants


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  * @(#) DescriptorConstants.java
26  *
27  * Copyright 2000-2001 by iPlanet/Sun Microsystems, Inc.,
28  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
29  * All rights reserved.
30  *
31  * This software is the confidential and proprietary information
32  * of iPlanet/Sun Microsystems, Inc. ("Confidential Information").
33  * You shall not disclose such Confidential Information and shall
34  * use it only in accordance with the terms of the license
35  * agreement you entered into with iPlanet/Sun Microsystems.
36  */

37 package com.sun.enterprise.deployment.io;
38
39 import java.io.File JavaDoc;
40
41 /**
42  * Contains all deployment descriptor constants.
43  *
44  * @author Nazrul Islam
45  * @since JDK1.4
46  */

47 public interface DescriptorConstants {
48     
49     /** Prefix used for S1AS xmls */
50     String JavaDoc S1AS_PREFIX = "sun-";
51
52     /** Prefix used for S1AS Cmp xmls */
53     String JavaDoc S1AS_CMP_PREFIX = "sun-cmp-";
54     
55     /** The name of the deployment descriptor entry in the application ear. */
56     String JavaDoc APPLICATION_DD_ENTRY = "META-INF"+File.separator+"application.xml";
57
58     /** The name of the deployment descriptor entry inside the ear. */
59     String JavaDoc APPLICATION_JAR_ENTRY = "META-INF/application.xml";
60
61     /** The name of the deployment descriptor entry in Sun application ear. */
62     String JavaDoc S1AS_APPLICATION_DD_ENTRY = "META-INF" + File.separator
63                                     + S1AS_PREFIX + "application.xml";
64
65     /** The name of the deployment descriptor entry in Sun application jar. */
66     String JavaDoc S1AS_APPLICATION_JAR_ENTRY = "META-INF/"+S1AS_PREFIX+"application.xml";
67
68     /** The name of the deployment descriptor entry in the ejb module jar. */
69     String JavaDoc EJB_DD_ENTRY = "META-INF" + File.separator + "ejb-jar.xml";
70
71     /** The name of the ejb deployment descriptor entry inside an ejb jar. */
72     String JavaDoc EJB_JAR_ENTRY = "META-INF/ejb-jar.xml";
73
74     /** The name of the Sun deployment descriptor entry in ejb module jar. */
75     String JavaDoc S1AS_EJB_DD_ENTRY="META-INF"+File.separator+S1AS_PREFIX+"ejb-jar.xml";
76
77     /** The Sun ejb deployment descriptor entry inside an ejb jar. */
78     String JavaDoc S1AS_EJB_JAR_ENTRY = "META-INF/" + S1AS_PREFIX + "ejb-jar.xml";
79
80     /** The name of the deployment descriptor entry in the web module. */
81     String JavaDoc WEB_DD_ENTRY = "WEB-INF" + File.separator + "web.xml";
82
83     /** The name of the deployment descriptor entry in the web jar. */
84     String JavaDoc WEB_JAR_ENTRY = "WEB-INF/web.xml";
85
86     /** The name of the S1AS deployment descriptor entry in web module. */
87     String JavaDoc S1AS_WEB_DD_ENTRY = "WEB-INF" + File.separator + S1AS_PREFIX+"web.xml";
88
89     /** The name of the S1AS deployment descriptor entry in web jar. */
90     String JavaDoc S1AS_WEB_JAR_ENTRY = "WEB-INF/" + S1AS_PREFIX + "web.xml";
91
92     /** The name of the deployment descriptor entry in the rar module. */
93     String JavaDoc RAR_DD_ENTRY = "META-INF" + File.separator + "ra.xml";
94
95     /** The name of the deployment descriptor entry in the rar jar */
96     String JavaDoc RAR_JAR_ENTRY = "META-INF/ra.xml";
97
98     /** The name of the deployment descriptor entry in the rar module */
99     String JavaDoc S1AS_RAR_DD_ENTRY = "META-INF"+File.separator+S1AS_PREFIX+"ra.xml";
100
101     /** The name of the deployment descriptor entry in the rar jar */
102     String JavaDoc S1AS_RAR_JAR_ENTRY = "META-INF/" + S1AS_PREFIX + "ra.xml";
103
104     /** The name of the WEB-INF entry in a war. */
105     String JavaDoc WEB_INF = "WEB-INF";
106
107     // no need for File.separator
108
String JavaDoc WEB_INF_CLASSES_DIR = WEB_INF + "/CLASSES";
109
110     // no need for File.separator
111
String JavaDoc WEB_INF_LIB_DIR = WEB_INF + "/LIB";
112
113     /** The file extension for jsp tag library. */
114     String JavaDoc TAG_LIB_EXT = ".tld";
115
116     /** The name of the deployment descriptor entry in the client jar. */
117     String JavaDoc APP_CLIENT_DD_ENTRY = "META-INF"
118                                + File.separator
119                                + "application-client.xml";
120
121     /** The application client entry inside a jar file. */
122     String JavaDoc APP_CLIENT_JAR_ENTRY = "META-INF/application-client.xml";
123
124     /** The name of the deployment descriptor entry in the client jar. */
125     String JavaDoc S1AS_APP_CLIENT_DD_ENTRY = "META-INF"
126                                    + File.separator
127                                    + S1AS_PREFIX+"application-client.xml";
128
129     /** The Sun application client entry inside a jar file. */
130     String JavaDoc S1AS_APP_CLIENT_JAR_ENTRY = "META-INF/"
131                                     + S1AS_PREFIX + "application-client.xml";
132
133     /** The manifest file name from an archive. */
134     String JavaDoc MANIFEST_ENTRY = "META-INF" + File.separator + "MANIFEST.MF";
135
136     /** The manifest file name from an archive; without File.separator */
137     String JavaDoc JAR_MANIFEST_ENTRY = "META-INF/MANIFEST.MF";
138
139     /** prefix used for application role mapper key */
140     String JavaDoc APP_ROLEMAPPER_PREFIX = "app_";
141
142     /** prefix used for module role mapper key */
143     String JavaDoc MODULE_ROLEMAPPER_PREFIX = "module_";
144
145     /** The Sun cmp-mapping descriptor entry in exploded file system. */
146     String JavaDoc S1AS_CMP_MAPPING_DD_ENTRY = "META-INF"
147                                     + File.separator
148                                     + S1AS_PREFIX
149                                     + "cmp-mappings.xml";
150
151     /** The Sun cmp-mapping descriptor entry inside an ejb jar. */
152     String JavaDoc S1AS_CMP_MAPPING_JAR_ENTRY = "META-INF/"
153                                      + S1AS_PREFIX + "cmp-mappings.xml";
154     
155     /** JaxRPC deployment descriptor file */
156     String JavaDoc JAXRPC_JAR_ENTRY = "WEB-INF/jaxrpc-ri.xml";
157     
158     /** WebServices descriptor entry in a web jar */
159     String JavaDoc WEB_WEBSERVICES_JAR_ENTRY = "WEB-INF/webservices.xml";
160     
161     /** WebServices descriptor entry in an ejb jar */
162     String JavaDoc EJB_WEBSERVICES_JAR_ENTRY = "META-INF/webservices.xml";
163
164     /** Persistence Unit Deployment Descriptor entry */
165     String JavaDoc PERSISTENCE_DD_ENTRY = "META-INF/persistence.xml";
166
167     /** Object to Relational mapping DD entry */
168     String JavaDoc ORM_DD_ENTRY = "META-INF/orm.xml";
169 }
170
Popular Tags