Methods Summary |
---|
public java.lang.Object | getDescriptor()
if (descriptor==null) {
descriptor = new SunConnector();
connector.setSunDescriptor(descriptor);
}
return descriptor;
|
public java.lang.String | getDocType()
return DTDRegistry.SUN_CONNECTOR_100_DTD_PUBLIC_ID;
|
public java.lang.String | getSystemID()
return DTDRegistry.SUN_CONNECTOR_100_DTD_SYSTEM_ID;
|
public java.util.List | getSystemIDs()
return null;
|
protected com.sun.enterprise.deployment.node.XMLElement | getXMLRootTag()
return new XMLElement(RuntimeTagNames.S1AS_CONNECTOR_RUNTIME_TAG);
|
public static java.lang.String | registerBundle(java.util.Map publicIDToDTD)register this node as a root node capable of loading entire DD files
publicIDToDTD.put(DTDRegistry.SUN_CONNECTOR_100_DTD_PUBLIC_ID, DTDRegistry.SUN_CONNECTOR_100_DTD_SYSTEM_ID);
return RuntimeTagNames.S1AS_CONNECTOR_RUNTIME_TAG;
|
public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.Descriptor descriptor)write the descriptor class to a DOM tree and return it
if (!(descriptor instanceof ConnectorDescriptor)) {
throw new IllegalArgumentException(getClass() + " cannot handles descriptors of type " + descriptor.getClass());
}
ConnectorDescriptor connector = (ConnectorDescriptor) descriptor;
Node connectorNode = super.writeDescriptor(parent, nodeName, descriptor);
// resource-adapter
SunConnector sunDesc = connector.getSunDescriptor();
if (sunDesc!=null) {
ResourceAdapterNode ran = new ResourceAdapterNode();
ran.writeDescriptor(connectorNode, RuntimeTagNames.RESOURCE_ADAPTER, sunDesc.getResourceAdapter());
// role-map ?
if (sunDesc.getRoleMap()!=null) {
RoleMapNode rmn = new RoleMapNode();
rmn.writeDescriptor(connectorNode, RuntimeTagNames.ROLE_MAP, sunDesc.getRoleMap());
}
}
return connectorNode;
|