Class ApplicationRuntimeNode

  • All Implemented Interfaces:
    RootXMLNode<Application>, XMLNode<Application>
    Direct Known Subclasses:
    GFApplicationRuntimeNode

    public class ApplicationRuntimeNode
    extends RuntimeBundleNode<Application>
    This node handles all runtime-information pertinent to applications The reading needs to be backward compatible with J2EE 1.2 and 1.3 where all runtime information was saved at the .ear file level in an unique sun-ri.xml file. In J2EE 1.4, each sub archivist is responsible for saving its runtime-info at his level.
    Version:
    Author:
    Jerome Dochez
    • Constructor Detail

      • ApplicationRuntimeNode

        public ApplicationRuntimeNode​(Application descriptor)
    • Method Detail

      • registerBundle

        public static String registerBundle​(Map publicIDToDTD,
                                            Map<String,​List<Class<?>>> versionUpgrades)
        register this node as a root node capable of loading entire DD files
        Parameters:
        publicIDToDTD - is a mapping between xml Public-ID to DTD
        Returns:
        the doctype tag name
      • getDocType

        public String getDocType()
        Returns:
        the DOCTYPE that should be written to the XML file
      • getSystemID

        public String getSystemID()
        Returns:
        the SystemID of the XML file
      • getSystemIDs

        public List<String> getSystemIDs()
        Returns:
        NULL for all runtime nodes.
      • getDispatchTable

        protected Map getDispatchTable()
        all sub-implementation of this class can use a dispatch table to map xml element to method name on the descriptor class for setting the element value.
        Overrides:
        getDispatchTable in class RuntimeBundleNode<Application>
        Returns:
        the map with the element name as a key, the setter method as a value
      • writeDescriptor

        public Node writeDescriptor​(Node parent,
                                    String nodeName,
                                    Application application)
        write the descriptor class to a DOM tree and return it
        Overrides:
        writeDescriptor in class DeploymentDescriptorNode<Application>
        Parameters:
        parent - node for the DOM tree
        nodeName - the node name
        application - the descriptor to write
        Returns:
        the DOM tree top node