Search in sources :

Example 1 with AbstractEndpoint

use of org.jboss.as.webservices.metadata.model.AbstractEndpoint in project wildfly by wildfly.

the class WSClassVerificationProcessor method deploy.

@Override
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit unit = phaseContext.getDeploymentUnit();
    final JAXWSDeployment wsDeployment = unit.getAttachment(JAXWS_ENDPOINTS_KEY);
    if (wsDeployment != null) {
        final Module module = unit.getAttachment(Attachments.MODULE);
        final DeploymentReflectionIndex deploymentReflectionIndex = unit.getAttachment(org.jboss.as.server.deployment.Attachments.REFLECTION_INDEX);
        final ClassLoader moduleClassLoader = module.getClassLoader();
        for (AbstractEndpoint pojoEndpoint : wsDeployment.getPojoEndpoints()) {
            verifyEndpoint(pojoEndpoint, moduleClassLoader, deploymentReflectionIndex);
        }
        for (AbstractEndpoint ejbEndpoint : wsDeployment.getEjbEndpoints()) {
            verifyEndpoint(ejbEndpoint, moduleClassLoader, deploymentReflectionIndex);
        }
        verifyApacheCXFModuleDependencyRequirement(unit);
    }
}
Also used : AbstractEndpoint(org.jboss.as.webservices.metadata.model.AbstractEndpoint) JAXWSDeployment(org.jboss.as.webservices.metadata.model.JAXWSDeployment) Module(org.jboss.modules.Module) DeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit) DeploymentReflectionIndex(org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex)

Aggregations

DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)1 DeploymentReflectionIndex (org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex)1 AbstractEndpoint (org.jboss.as.webservices.metadata.model.AbstractEndpoint)1 JAXWSDeployment (org.jboss.as.webservices.metadata.model.JAXWSDeployment)1 Module (org.jboss.modules.Module)1