Search in sources :

Example 1 with ApplicationParam

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

the class ApplicationParamNode method writeDescriptors.

/**
 * write all occurrences of the descriptor corresponding to the current
 * node from the parent descriptor to an JAXP DOM node and return it
 *
 * This API will be invoked by the parent node when the parent node
 * writes out a mix of statically and dynamically registered sub nodes.
 *
 * This method should be overriden by the sub classes if it
 * needs to be called by the parent node.
 *
 * @param parent node in the DOM tree
 * @param nodeName the name of the node
 * @param parentDesc parent descriptor of the descriptor to be written
 * @return the JAXP DOM node
 */
@Override
public Node writeDescriptors(Node parent, String nodeName, Descriptor parentDesc) {
    if (parentDesc instanceof Application) {
        Application application = (Application) parentDesc;
        // application-param*
        Set<ApplicationParam> applicationParams = application.getApplicationParams();
        for (ApplicationParam appParam : applicationParams) {
            writeDescriptor(parent, nodeName, (EnvironmentProperty) appParam);
        }
    }
    return parent;
}
Also used : ApplicationParam(com.sun.enterprise.deployment.runtime.application.wls.ApplicationParam) Application(com.sun.enterprise.deployment.Application)

Aggregations

Application (com.sun.enterprise.deployment.Application)1 ApplicationParam (com.sun.enterprise.deployment.runtime.application.wls.ApplicationParam)1