Class ServiceRefNode

  • All Implemented Interfaces:
    XMLNode

    public class ServiceRefNode
    extends DeploymentDescriptorNode
    This node is responsible for handling runtime info for service references
    Version:
    Author:
    Kenneth Saks
    • Constructor Detail

      • ServiceRefNode

        public ServiceRefNode()
    • Method Detail

      • getDispatchTable

        protected Map<String,​String> 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 DeploymentDescriptorNode
        Returns:
        the map with the element name as a key, the setter method as a value
      • writeDescriptor

        public Node writeDescriptor​(Node parent,
                                    String nodeName,
                                    ServiceReferenceDescriptor serviceRef)
        write the descriptor class to a DOM tree and return it
        Parameters:
        parent - node for the DOM tree
        node - name for the descriptor
        the - descriptor to write
        Returns:
        the DOM tree top node
      • writeServiceReferences

        public static void writeServiceReferences​(Node parent,
                                                  JndiNameEnvironment descriptor)
        writes all the runtime information for service references
        Parameters:
        parent - node to add the runtime xml info
        the - J2EE component containing service references