Search in sources :

Example 11 with WebService

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;
}
Also used : WebServicesDescriptor(com.sun.enterprise.deployment.WebServicesDescriptor) WebService(com.sun.enterprise.deployment.WebService) Node(org.w3c.dom.Node) AbstractBundleNode(com.sun.enterprise.deployment.node.AbstractBundleNode) Document(org.w3c.dom.Document)

Example 12 with WebService

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);
}
Also used : WebServiceEndpoint(com.sun.enterprise.deployment.WebServiceEndpoint) WebService(com.sun.enterprise.deployment.WebService)

Example 13 with WebService

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);
        }
    }
}
Also used : WebService(com.sun.enterprise.deployment.WebService) WebServiceEndpoint(com.sun.enterprise.deployment.WebServiceEndpoint)

Aggregations

WebService (com.sun.enterprise.deployment.WebService)13 WebServiceEndpoint (com.sun.enterprise.deployment.WebServiceEndpoint)5 WebServicesDescriptor (com.sun.enterprise.deployment.WebServicesDescriptor)5 EjbBundleDescriptor (com.sun.enterprise.deployment.EjbBundleDescriptor)3 EjbDescriptor (com.sun.enterprise.deployment.EjbDescriptor)2 ServiceReferenceDescriptor (com.sun.enterprise.deployment.ServiceReferenceDescriptor)2 WebComponentDescriptor (com.sun.enterprise.deployment.WebComponentDescriptor)2 AbstractBundleNode (com.sun.enterprise.deployment.node.AbstractBundleNode)2 EjbBundleDescriptorImpl (org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl)2 EjbDescriptor (org.glassfish.ejb.deployment.descriptor.EjbDescriptor)2 RelationshipDescriptor (org.glassfish.ejb.deployment.descriptor.RelationshipDescriptor)2 Node (org.w3c.dom.Node)2 BundleDescriptor (com.sun.enterprise.deployment.BundleDescriptor)1 InjectionCapable (com.sun.enterprise.deployment.InjectionCapable)1 JaxrpcMappingDescriptor (com.sun.enterprise.deployment.JaxrpcMappingDescriptor)1 JndiNameEnvironment (com.sun.enterprise.deployment.JndiNameEnvironment)1 WebBundleDescriptor (com.sun.enterprise.deployment.WebBundleDescriptor)1 EjbContext (com.sun.enterprise.deployment.annotation.context.EjbContext)1 EjbsContext (com.sun.enterprise.deployment.annotation.context.EjbsContext)1 WebBundleContext (com.sun.enterprise.deployment.annotation.context.WebBundleContext)1