*/
public class UnifiedServiceRefDeploymentAspect extends AbstractDeploymentAspect {
@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);
}
}
}