Search in sources :

Example 1 with WebservicesPropertyReplaceFactory

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

the class WebservicesDescriptorDeploymentProcessor method deploy.

public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit unit = phaseContext.getDeploymentUnit();
    final ResourceRoot deploymentRoot = unit.getAttachment(Attachments.DEPLOYMENT_ROOT);
    final URL webservicesDescriptorURL = getWebServicesDescriptorURL(deploymentRoot);
    if (webservicesDescriptorURL != null) {
        final WebservicesPropertyReplaceFactory webservicesFactory = new WebservicesPropertyReplaceFactory(webservicesDescriptorURL, JBossDescriptorPropertyReplacement.propertyReplacer(unit));
        final WebservicesMetaData webservicesMD = webservicesFactory.load(webservicesDescriptorURL);
        unit.putAttachment(WSAttachmentKeys.WEBSERVICES_METADATA_KEY, webservicesMD);
        if (hasJaxRpcMapping(webservicesMD)) {
            throw WSLogger.ROOT_LOGGER.jaxRpcNotSupported();
        }
    }
}
Also used : ResourceRoot(org.jboss.as.server.deployment.module.ResourceRoot) WebservicesPropertyReplaceFactory(org.jboss.as.webservices.metadata.WebservicesPropertyReplaceFactory) WebservicesMetaData(org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData) DeploymentUnit(org.jboss.as.server.deployment.DeploymentUnit) URL(java.net.URL)

Aggregations

URL (java.net.URL)1 DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)1 ResourceRoot (org.jboss.as.server.deployment.module.ResourceRoot)1 WebservicesPropertyReplaceFactory (org.jboss.as.webservices.metadata.WebservicesPropertyReplaceFactory)1 WebservicesMetaData (org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData)1