1 6 7 package org.jfox.ejb.meta; 8 9 import org.jfox.ioc.util.XMLUtils; 10 import org.w3c.dom.Node ; 11 12 15 16 public class ResourceEnvRefDescriptor extends Descriptor { 17 18 private String refName; 19 private String type; 20 21 public void processXML(Node node) throws EJBDescriptionException { 22 super.processXML(node); 23 setRefName(XMLUtils.getChildNodeValueOf(node, "resource-env-ref-name")); 24 setType(XMLUtils.getChildNodeValueOf(node, "resource-env-ref-type")); 25 } 26 27 public String getRefName() { 28 return refName; 29 } 30 31 public String getJndiName() { 32 return getRefName(); 33 } 34 35 public void setRefName(String refName) { 36 this.refName = refName; 37 } 38 39 public String getType() { 40 return type; 41 } 42 43 public void setType(String type) { 44 this.type = type; 45 } 46 47 public static void main(String [] args) { 48 49 } 50 } 51 | Popular Tags |