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