use of org.apache.dubbo.registry.Registry in project dubbo by alibaba.
the class MultipleRegistry method initServiceRegistry.
protected void initServiceRegistry(URL url, Map<String, Registry> registryMap) {
origServiceRegistryURLs = url.getParameter(REGISTRY_FOR_SERVICE, new ArrayList<String>());
effectServiceRegistryURLs = this.filterServiceRegistry(origServiceRegistryURLs);
for (String tmpUrl : effectServiceRegistryURLs) {
if (registryMap.get(tmpUrl) != null) {
serviceRegistries.put(tmpUrl, registryMap.get(tmpUrl));
continue;
}
Registry registry = getRegistry(URL.valueOf(tmpUrl));
registryMap.put(tmpUrl, registry);
serviceRegistries.put(tmpUrl, registry);
}
}
Aggregations