1 23 24 33 34 package com.sun.enterprise.deployment.node; 35 36 import java.util.Map ; 37 import org.w3c.dom.Node ; 38 39 import com.sun.enterprise.deployment.InjectionTarget; 40 import com.sun.enterprise.deployment.xml.TagNames; 41 42 47 public class InjectionTargetNode extends DeploymentDescriptorNode { 48 49 55 protected Map getDispatchTable() { 56 Map table = super.getDispatchTable(); 57 table.put(TagNames.INJECTION_TARGET_CLASS, 58 "setClassName"); 59 table.put(TagNames.INJECTION_TARGET_NAME, 60 "setTargetName"); 61 return table; 62 } 63 64 72 public Node writeDescriptor(Node parent, String nodeName, InjectionTarget descriptor) { 73 Node myNode = appendChild(parent, nodeName); 74 appendTextChild(myNode, TagNames.INJECTION_TARGET_CLASS, 75 descriptor.getClassName()); 76 appendTextChild(myNode, TagNames.INJECTION_TARGET_NAME, 77 descriptor.getTargetName()); 78 return myNode; 79 } 80 81 } 82 | Popular Tags |