FileDocCategorySizeDatePackage
RuntimeBundleNode.javaAPI DocGlassfish v2 API5039Fri May 04 22:31:42 BST 2007com.sun.enterprise.deployment.node.runtime

RuntimeBundleNode

public abstract class RuntimeBundleNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode implements com.sun.enterprise.deployment.node.RootXMLNode

Fields Summary
protected com.sun.enterprise.deployment.Descriptor
descriptor
private static Boolean
restrictDTDDeclarations
Constructors Summary
public RuntimeBundleNode(com.sun.enterprise.deployment.Descriptor descriptor)

    
       
        this.descriptor = descriptor;
	Init();
    
public RuntimeBundleNode()

        this(null);
    
Methods Summary
protected voidInit()
Initializes the child handler;

	// we do not care about standard DDs common tags
	handlers=null;
    
public voidaddDescriptor(java.lang.Object descriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode

param
descriptor the new descriptor

    
        return;
    
public java.lang.ObjectgetDescriptor()

return
the descriptor instance to associate with this XMLNode

        return descriptor;
    
public java.lang.StringgetSpecVersion()

return
the default spec version level this node complies to

        return "1.4";
    
protected static final booleanrestrictDTDDeclarations()

return
true if the runtime bundle node should only process the product FCS DTD declarations

        if (restrictDTDDeclarations==null) {
            restrictDTDDeclarations = Boolean.valueOf(Boolean.getBoolean("com.sun.aas.deployment.restrictdtddeclarations"));
        }
        return restrictDTDDeclarations.booleanValue();
    
public voidsetDocType(java.lang.String docType)
set the DOCTYPE as read in the input XML File

param
DOCTYPE

        // I do not care about the version of the runtime descriptors
    
protected voidsetSpecVersion()
Sets the specVersion for this descriptor depending on the docType

        // I do not care about the version of the runtime descriptors
    
protected voidwriteMessageDestinationInfo(org.w3c.dom.Node parent, com.sun.enterprise.deployment.BundleDescriptor descriptor)
writes the message destination references runtime information

        for(Iterator iter = descriptor.getMessageDestinations().iterator();
            iter.hasNext();) {
            MessageDestinationRuntimeNode node = 
                new MessageDestinationRuntimeNode();
            node.writeDescriptor(parent, RuntimeTagNames.MESSAGE_DESTINATION,
                                 (MessageDestinationDescriptor) iter.next());
        }