KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > webapps_deployer > orion > Application_Element


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12
//
13
//
14
// Application_Element
15
//
16
// NK 29.01.2001
17
//
18
//
19

20 package org.jahia.services.webapps_deployer.orion;
21
22
23 /**
24  * Holds Informations about the <application> element in server.xml file
25  * <application-server
26  * .
27  * .
28  * <application name="Bookmark" path="../applications/Bookmark.ear" />
29  * <application name="Jahia" path="../applications/Jahia.ear" />
30  * .
31  * .
32  * </application-server>
33  *
34  * @author Khue ng
35  * @version 1.0
36  */

37 public class Application_Element {
38
39     /** The name attribute * */
40     private String JavaDoc m_Name;
41     /** The path attribute * */
42     private String JavaDoc m_Path;
43     /** The deployment-directory attribute * */
44     private String JavaDoc m_DeployDir;
45     /** The parent attribute * */
46     private String JavaDoc m_Parent;
47     /** The auto-start attribute * */
48     private String JavaDoc m_AutoStart;
49
50
51     /**
52      * Constructor
53      */

54     public Application_Element (String JavaDoc name,
55                                 String JavaDoc path,
56                                 String JavaDoc deployDir,
57                                 String JavaDoc parent,
58                                 String JavaDoc autoStart
59                                 ) {
60
61         m_Name = name;
62         m_Path = path;
63         m_DeployDir = deployDir;
64         m_Parent = parent;
65         m_AutoStart = autoStart;
66
67     }
68
69
70     /**
71      * Return the Name
72      *
73      * @return (String) the Application Name
74      */

75     public String JavaDoc getName () {
76
77         return m_Name;
78     }
79
80
81     /**
82      * Set the Name
83      *
84      * @param (String) the Name
85      */

86     public void setName (String JavaDoc name) {
87
88         m_Name = name;
89     }
90
91
92     /**
93      * Return the Path to the .ear file
94      *
95      * @return (String) the Path to the ear file
96      */

97     public String JavaDoc getPath () {
98
99         return m_Path;
100     }
101
102
103     /**
104      * Set the Path to the .ear file
105      *
106      * @param (String) the .ear file path
107      */

108     public void setPath (String JavaDoc path) {
109
110         m_Path = path;
111     }
112
113
114     /**
115      * Return the Deployment-Dir
116      *
117      * @return (String) the Deploy dir
118      */

119     public String JavaDoc getDeployDir () {
120
121         return m_DeployDir;
122     }
123
124
125     /**
126      * Set the Deploy-Dir
127      *
128      * @param (String) the Deploy-Dir
129      */

130     public void setDeployDir (String JavaDoc deployDir) {
131
132         m_DeployDir = deployDir;
133     }
134
135
136     /**
137      * Return the Parent
138      *
139      * @return (String) the Parent
140      */

141     public String JavaDoc getParent () {
142
143         return m_Parent;
144     }
145
146
147     /**
148      * Set the Parent
149      *
150      * @param (String) the parent
151      */

152     public void setParent (String JavaDoc parent) {
153
154         m_Parent = parent;
155     }
156
157
158     /**
159      * Return the Auto-Start Attribute
160      *
161      * @return (String) Auto-Start
162      */

163     public String JavaDoc getAutoStart () {
164
165         return m_AutoStart;
166     }
167
168
169     /**
170      * Set the AutoStart attribut
171      *
172      * @param (String) AutoStart
173      */

174     public void setAutoStart (String JavaDoc autoStart) {
175
176         m_AutoStart = autoStart;
177     }
178
179
180 } // end Application_Element
181
Popular Tags