KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > deployment > web > WebModuleDescriptor


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.deployment.web;
8
9 import org.jfox.ejb.meta.Descriptor;
10 import org.jfox.ejb.meta.EJBDescriptionException;
11 import org.jfox.ioc.util.XMLUtils;
12 import org.w3c.dom.Node JavaDoc;
13
14 /**
15  * descriptor in application.xml web module
16  *
17  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
18  */

19
20 public class WebModuleDescriptor extends Descriptor {
21     private String JavaDoc warName;
22     private String JavaDoc webContext;
23
24     public void processXML(Node JavaDoc node) throws EJBDescriptionException {
25         setWarName(XMLUtils.getChildNodeValueOf(node, "web-uri"));
26         setWebContext(XMLUtils.getChildNodeValueOf(node, "context-root"));
27     }
28
29     public String JavaDoc getWarName() {
30         return warName;
31     }
32
33     public void setWarName(String JavaDoc warName) {
34         this.warName = warName;
35     }
36
37     public String JavaDoc getWebContext() {
38         return webContext;
39     }
40
41     public void setWebContext(String JavaDoc webContext) {
42         this.webContext = webContext;
43     }
44
45     public static void main(String JavaDoc[] args) {
46
47     }
48 }
49
50
Popular Tags