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();
}
}
}
Aggregations