Methods Summary |
---|
public void | addDescriptor(java.lang.Object obj)Adds a new DOL descriptor instance to the descriptor instance associated with
this XMLNode
if (obj instanceof MessageListener) {
descriptor.addMessageListener((MessageListener)obj);
}
|
private void | appendInBoundNode(org.w3c.dom.Node inBoundNode, com.sun.enterprise.deployment.InboundResourceAdapter conDesc)method to add the child nodes of INBOUND_RESOURCE_ADAPTER
Node msgAdapter = appendChild(inBoundNode, ConnectorTagNames.MSG_ADAPTER);
MessageListenerNode msgListener = new MessageListenerNode();
msgAdapter = msgListener.writeDescriptor(msgAdapter, conDesc);
|
public java.lang.Object | getDescriptor()
if (descriptor==null) {
// the descriptor associated with the InBoundRANode is a InboundResourceAdapter
// This descriptor is available with the parent node of the InBoundRANode
descriptor = (InboundResourceAdapter)DescriptorFactory.getDescriptor(getXMLPath());
((ConnectorDescriptor)(getParentNode().getDescriptor())).setInboundResourceAdapter(descriptor);
}
return descriptor;
|
protected java.util.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.
Map table = super.getDispatchTable();
return table;
|
public void | startElement(com.sun.enterprise.deployment.node.XMLElement element, org.xml.sax.Attributes attributes)SAX Parser API implementation, we don't really care for now.
|
public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node connectorNode, com.sun.enterprise.deployment.Descriptor descriptor)write the descriptor class to a DOM tree and return it
Node inBoundNode = appendChild(connectorNode, ConnectorTagNames.INBOUND_RESOURCE_ADAPTER);
appendInBoundNode(inBoundNode, (InboundResourceAdapter)((ConnectorDescriptor)descriptor).getInboundResourceAdapter());
return connectorNode;
|