use of org.apache.dubbo.registry.client.ServiceDiscoveryFactory in project incubator-dubbo-ops by apache.
the class ConfigCenter method getServiceDiscoveryRegistry.
@Bean(destroyMethod = "destroy")
@DependsOn("dubboRegistry")
ServiceDiscovery getServiceDiscoveryRegistry() throws Exception {
URL registryURL = registryUrl.setPath(RegistryService.class.getName());
ServiceDiscoveryFactory factory = getExtension(registryURL);
ServiceDiscovery serviceDiscovery = factory.getServiceDiscovery(registryURL);
serviceDiscovery.initialize(registryURL);
return serviceDiscovery;
}
Aggregations