Search in sources :

Example 1 with WeblogicApplicationNode

use of com.sun.enterprise.deployment.node.runtime.application.wls.WeblogicApplicationNode in project Payara by payara.

the class WLSApplicationRuntimeDDFile method getRootXMLNode.

/**
 * @return a RootXMLNode responsible for handling the deployment
 * descriptors associated with this J2EE module
 *
 * @param the descriptor for which we need the node
 */
public RootXMLNode getRootXMLNode(Descriptor descriptor) {
    if (descriptor instanceof Application) {
        Application application = (Application) descriptor;
        RootXMLNode node = application.getRootNode(getDeploymentDescriptorPath());
        if (node == null) {
            node = new WeblogicApplicationNode(application);
            application.addRootNode(getDeploymentDescriptorPath(), node);
        }
        return node;
    }
    return new WeblogicApplicationNode();
}
Also used : WeblogicApplicationNode(com.sun.enterprise.deployment.node.runtime.application.wls.WeblogicApplicationNode) RootXMLNode(com.sun.enterprise.deployment.node.RootXMLNode) Application(com.sun.enterprise.deployment.Application)

Aggregations

Application (com.sun.enterprise.deployment.Application)1 RootXMLNode (com.sun.enterprise.deployment.node.RootXMLNode)1 WeblogicApplicationNode (com.sun.enterprise.deployment.node.runtime.application.wls.WeblogicApplicationNode)1