RuntimeDescriptorNodepublic class RuntimeDescriptorNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode Superclass for all the runtime descriptor nodes |
Methods Summary |
---|
public java.lang.Object | getDescriptor()
if (abstractDescriptor==null) {
abstractDescriptor = RuntimeDescriptorFactory.getDescriptor(getXMLPath());
if (abstractDescriptor ==null) {
return getParentNode().getDescriptor();
}
}
return abstractDescriptor;
| public void | setElementValue(com.sun.enterprise.deployment.node.XMLElement element, java.lang.String value)receives notification of the value for a particular tag
if (getDispatchTable().containsKey(element.getQName())) {
super.setElementValue(element, value);
} else {
Object o = getDescriptor();
if (o instanceof RuntimeDescriptor) {
RuntimeDescriptor rd = (RuntimeDescriptor) o;
rd.setValue(element.getQName(), value);
} else {
DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure",
new Object[]{element.getQName() , value });
}
}
| public static void | writeCommonComponentInfo(org.w3c.dom.Node parent, com.sun.enterprise.deployment.Descriptor descriptor)writes all information common to all J2EE components
if (descriptor instanceof EjbReferenceContainer) {
EjbRefNode.writeEjbReferences(parent, (EjbReferenceContainer) descriptor);
}
if (descriptor instanceof ResourceReferenceContainer) {
ResourceRefNode.writeResourceReferences(parent, (ResourceReferenceContainer) descriptor);
}
if (descriptor instanceof ResourceEnvReferenceContainer) {
ResourceEnvRefNode.writeResoureEnvReferences(parent, (ResourceEnvReferenceContainer) descriptor);
}
if( descriptor instanceof JndiNameEnvironment ) {
ServiceRefNode.writeServiceReferences
(parent, (JndiNameEnvironment) descriptor);
}
if (descriptor instanceof MessageDestinationReferenceContainer) {
MessageDestinationRefNode.writeMessageDestinationReferences(parent,
(MessageDestinationReferenceContainer) descriptor);
}
| public static void | writeMessageDestinationInfo(org.w3c.dom.Node parent, com.sun.enterprise.deployment.BundleDescriptor descriptor)
for(Iterator iter = descriptor.getMessageDestinations().iterator();
iter.hasNext();) {
MessageDestinationRuntimeNode node =
new MessageDestinationRuntimeNode();
node.writeDescriptor(parent, RuntimeTagNames.MESSAGE_DESTINATION,
(MessageDestinationDescriptor) iter.next());
}
|
|