1 23 24 package com.sun.enterprise.deployment.node.runtime; 25 26 import java.util.Iterator ; 27 import org.w3c.dom.Node ; 28 29 import com.sun.enterprise.deployment.Descriptor; 30 import com.sun.enterprise.deployment.BundleDescriptor; 31 import com.sun.enterprise.deployment.MessageDestinationDescriptor; 32 import com.sun.enterprise.deployment.node.XMLElement; 33 import com.sun.enterprise.deployment.node.DeploymentDescriptorNode; 34 import com.sun.enterprise.deployment.node.RootXMLNode; 35 import com.sun.enterprise.deployment.xml.RuntimeTagNames; 36 37 public abstract class RuntimeBundleNode extends DeploymentDescriptorNode implements RootXMLNode { 38 39 protected Descriptor descriptor=null; 40 41 public RuntimeBundleNode(Descriptor descriptor) { 42 this.descriptor = descriptor; 43 Init(); 44 } 45 46 public RuntimeBundleNode() { 47 this(null); 48 } 49 50 53 protected void Init() { 54 handlers=null; 56 } 57 58 64 public void addDescriptor(Object descriptor) { 65 return; 66 } 67 68 71 public Object getDescriptor() { 72 return descriptor; 73 } 74 75 78 public String getSpecVersion() { 79 return "1.4"; 80 } 81 82 86 public void setDocType(String docType) { 87 } 89 90 93 protected void setSpecVersion() { 94 } 96 97 100 protected void writeMessageDestinationInfo(Node parent, 101 BundleDescriptor descriptor) { 102 for(Iterator iter = descriptor.getMessageDestinations().iterator(); 103 iter.hasNext();) { 104 MessageDestinationRuntimeNode node = 105 new MessageDestinationRuntimeNode(); 106 node.writeDescriptor(parent, RuntimeTagNames.MESSAGE_DESTINATION, 107 (MessageDestinationDescriptor) iter.next()); 108 } 109 } 110 111 115 protected static final boolean restrictDTDDeclarations() { 116 if (restrictDTDDeclarations==null) { 117 restrictDTDDeclarations = new Boolean (Boolean.getBoolean( 118 "com.sun.aas.deployment.restrictdtddeclarations")); 119 } 120 return restrictDTDDeclarations.booleanValue(); 121 } 122 123 private static Boolean restrictDTDDeclarations=null; 124 } 125 | Popular Tags |