Class WeblogicApplicationNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode<Application>
-
- com.sun.enterprise.deployment.node.runtime.application.wls.WeblogicApplicationNode
-
- All Implemented Interfaces:
RootXMLNode<Application>,XMLNode<Application>
public class WeblogicApplicationNode extends RuntimeBundleNode<Application>
This node is responsible for handling all WebLogic runtime information for application.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPUBLIC_DTD_ID_2static StringSCHEMA_IDstatic StringSYSTEM_ID_2-
Fields inherited from class com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode
descriptor, elementToNodeMappings
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description WeblogicApplicationNode()Creates new WeblogicApplicationNodeWeblogicApplicationNode(Application descriptor)Creates new WeblogicApplicationNode
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescriptor(Object newDescriptor)Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNodeApplicationgetDescriptor()StringgetDocType()StringgetSystemID()List<String>getSystemIDs()protected XMLElementgetXMLRootTag()protected voidinit()Initialize the child handlersstatic StringregisterBundle(Map<String,String> publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)register this node as a root node capable of loading entire DD filesNodewriteDescriptor(Node parent, String nodeName, Application application)Write the descriptor class to a DOM tree and return it-
Methods inherited from class com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode
appendChildNS, getDispatchTable, getNodeMappings, getSpecVersion, recordNodeMapping, restrictDTDDeclarations, setDocType, setElementValue, setSpecVersion, writeMessageDestinationInfo
-
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.deployment.node.XMLNode
addPrefixMapping, endElement, getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElement, writeDescriptor
-
-
-
-
Field Detail
-
SCHEMA_ID
public static final String SCHEMA_ID
- See Also:
- Constant Field Values
-
PUBLIC_DTD_ID_2
public static final String PUBLIC_DTD_ID_2
- See Also:
- Constant Field Values
-
SYSTEM_ID_2
public static final String SYSTEM_ID_2
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WeblogicApplicationNode
public WeblogicApplicationNode(Application descriptor)
Creates new WeblogicApplicationNode
-
WeblogicApplicationNode
public WeblogicApplicationNode()
Creates new WeblogicApplicationNode
-
-
Method Detail
-
init
protected void init()
Initialize the child handlers- Overrides:
initin classRuntimeBundleNode<Application>
-
registerBundle
public static String registerBundle(Map<String,String> 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 DTDversionUpgrades- The list of upgrades from older versions- Returns:
- the doctype tag name
-
getXMLRootTag
protected XMLElement getXMLRootTag()
- Overrides:
getXMLRootTagin classDeploymentDescriptorNode<Application>- Returns:
- the XML tag associated with this XMLNode
-
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:
- the list of SystemID of the XML schema supported
-
getDescriptor
public Application getDescriptor()
- Specified by:
getDescriptorin interfaceXMLNode<Application>- Overrides:
getDescriptorin classRuntimeBundleNode<Application>- Returns:
- the application instance to associate with this XMLNode
-
addDescriptor
public void addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptorin interfaceXMLNode<Application>- Overrides:
addDescriptorin classRuntimeBundleNode<Application>- Parameters:
descriptor- the new descriptor
-
writeDescriptor
public Node writeDescriptor(Node parent, String nodeName, Application application)
Write the descriptor class to a DOM tree and return it- Overrides:
writeDescriptorin classDeploymentDescriptorNode<Application>- Parameters:
parent- node for the DOM treenodeName- the node namedescriptor- the descriptor to write- Returns:
- the DOM tree top node
-
-