use of com.sun.enterprise.deployment.WebService in project Payara by payara.
the class WebServicesDescriptorNode method writeDescriptor.
/**
* write the descriptor class to a DOM tree and return it
*
* @param parent node for the DOM tree
* @param descriptor to write
* @return the DOM tree top node
*/
@Override
public Node writeDescriptor(Node parent, BundleDescriptor descriptor) {
if (parent instanceof Document) {
Node topNode = super.writeDescriptor(parent, descriptor);
WebServicesDescriptor webServicesDesc = descriptor.getWebServices();
WebServiceNode wsNode = new WebServiceNode();
for (WebService next : webServicesDesc.getWebServices()) {
wsNode.writeDescriptor(topNode, WEB_SERVICE, next);
}
}
return parent;
}
use of com.sun.enterprise.deployment.WebService in project Payara by payara.
the class WebServiceNode method addDescriptor.
/**
* Adds a new DOL descriptor instance to the descriptor
* instance associated with this XMLNode
*
* @param descriptor the new descriptor
*/
public void addDescriptor(Object descriptor) {
WebServiceEndpoint endpoint = (WebServiceEndpoint) descriptor;
WebService webService = (WebService) getDescriptor();
webService.addEndpoint(endpoint);
}
use of com.sun.enterprise.deployment.WebService in project Payara by payara.
the class WebServicesDeploymentMBean method deploy.
public synchronized void deploy(WebServicesDescriptor wsDesc, WebServiceDeploymentNotifier notifier) {
for (WebService svc : wsDesc.getWebServices()) {
for (WebServiceEndpoint endpoint : svc.getEndpoints()) {
deploy(endpoint);
notifier.notifyDeployed(endpoint);
}
}
}
Aggregations