Examples of WSRefRegistry


Examples of org.jboss.as.webservices.webserviceref.WSRefRegistry

        ServiceController<T> service = (ServiceController<T>)context.getServiceRegistry(false).getService(serviceName);
        return service != null ? service.getValue() : null;
    }

    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;
View Full Code Here

Examples of org.jboss.as.webservices.webserviceref.WSRefRegistry

*/
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);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.