use of org.jboss.as.webservices.webserviceref.WSRefRegistry in project wildfly by wildfly.
the class ASHelper method getWSRefRegistry.
public static WSRefRegistry getWSRefRegistry(final DeploymentUnit unit) {
WSRefRegistry refRegistry = unit.getAttachment(WSAttachmentKeys.WS_REFREGISTRY);
if (refRegistry == null) {
refRegistry = WSRefRegistry.newInstance();
unit.putAttachment(WSAttachmentKeys.WS_REFREGISTRY, refRegistry);
}
return refRegistry;
}
use of org.jboss.as.webservices.webserviceref.WSRefRegistry in project wildfly by wildfly.
the class UnifiedServiceRefDeploymentAspect method start.
@Override
public void start(final Deployment dep) {
final DeploymentUnit unit = getRequiredAttachment(dep, DeploymentUnit.class);
WSRefRegistry wsRefRegistry = ASHelper.getWSRefRegistry(unit);
Object obj = dep.getProperty("ServiceAddressMap");
if (obj != null) {
@SuppressWarnings("unchecked") Map<QName, String> deployedPortsAddress = (Map<QName, String>) obj;
for (UnifiedServiceRefMetaData metaData : wsRefRegistry.getUnifiedServiceRefMetaDatas()) {
metaData.addDeployedServiceAddresses(deployedPortsAddress);
}
}
}
Aggregations