Search in sources :

Example 1 with EndpointHandlerDeploymentAspect

use of org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect in project wildfly by wildfly.

the class EndpointPublisherImpl method getReplacedDeploymentAspects.

private static synchronized List<DeploymentAspect> getReplacedDeploymentAspects() {
    if (depAspects == null) {
        depAspects = new LinkedList<DeploymentAspect>();
        List<DeploymentAspect> serverAspects = DeploymentAspectsProvider.getSortedDeploymentAspects();
        for (DeploymentAspect aspect : serverAspects) {
            if (aspect instanceof EndpointHandlerDeploymentAspect) {
                depAspects.add(aspect);
                //add another aspect to set InvocationHandlerJAXWS to each endpoint
                ForceJAXWSInvocationHandlerDeploymentAspect handlerAspect = new ForceJAXWSInvocationHandlerDeploymentAspect();
                depAspects.add(handlerAspect);
            } else {
                depAspects.add(aspect);
            }
        }
    }
    return depAspects;
}
Also used : EndpointHandlerDeploymentAspect(org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect) AbstractDeploymentAspect(org.jboss.ws.common.integration.AbstractDeploymentAspect) EndpointServiceDeploymentAspect(org.jboss.as.webservices.deployers.EndpointServiceDeploymentAspect) DeploymentAspect(org.jboss.wsf.spi.deployment.DeploymentAspect) EndpointHandlerDeploymentAspect(org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect)

Example 2 with EndpointHandlerDeploymentAspect

use of org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect in project wildfly by wildfly.

the class EndpointPublisherImpl method getPublisherDeploymentAspects.

private static synchronized List<DeploymentAspect> getPublisherDeploymentAspects() {
    if (publisherDepAspects == null) {
        publisherDepAspects = new LinkedList<DeploymentAspect>();
        // copy to replace the EndpointServiceDeploymentAspect
        List<DeploymentAspect> serverAspects = DeploymentAspectsProvider.getSortedDeploymentAspects();
        for (DeploymentAspect aspect : serverAspects) {
            if (aspect instanceof EndpointServiceDeploymentAspect) {
                final EndpointServiceDeploymentAspect a = (EndpointServiceDeploymentAspect) aspect;
                EndpointServiceDeploymentAspect clone = (EndpointServiceDeploymentAspect) (a.clone());
                clone.setStopServices(true);
                publisherDepAspects.add(clone);
            } else if (aspect instanceof EndpointHandlerDeploymentAspect) {
                publisherDepAspects.add(aspect);
                //add another aspect to set InvocationHandlerJAXWS to each endpoint
                ForceJAXWSInvocationHandlerDeploymentAspect handlerAspect = new ForceJAXWSInvocationHandlerDeploymentAspect();
                publisherDepAspects.add(handlerAspect);
            } else {
                publisherDepAspects.add(aspect);
            }
        }
    }
    return publisherDepAspects;
}
Also used : EndpointHandlerDeploymentAspect(org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect) AbstractDeploymentAspect(org.jboss.ws.common.integration.AbstractDeploymentAspect) EndpointServiceDeploymentAspect(org.jboss.as.webservices.deployers.EndpointServiceDeploymentAspect) DeploymentAspect(org.jboss.wsf.spi.deployment.DeploymentAspect) EndpointHandlerDeploymentAspect(org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect) EndpointServiceDeploymentAspect(org.jboss.as.webservices.deployers.EndpointServiceDeploymentAspect)

Aggregations

EndpointServiceDeploymentAspect (org.jboss.as.webservices.deployers.EndpointServiceDeploymentAspect)2 EndpointHandlerDeploymentAspect (org.jboss.ws.common.deployment.EndpointHandlerDeploymentAspect)2 AbstractDeploymentAspect (org.jboss.ws.common.integration.AbstractDeploymentAspect)2 DeploymentAspect (org.jboss.wsf.spi.deployment.DeploymentAspect)2