Package org.apache.dubbo.registry.client
Class AbstractServiceDiscoveryFactory
java.lang.Object
org.apache.dubbo.registry.client.AbstractServiceDiscoveryFactory
- All Implemented Interfaces:
ServiceDiscoveryFactory,ScopeModelAware
- Direct Known Subclasses:
DefaultServiceDiscoveryFactory
public abstract class AbstractServiceDiscoveryFactory
extends Object
implements ServiceDiscoveryFactory, ScopeModelAware
Abstract
ServiceDiscoveryFactory implementation with cache, the subclass
should implement createDiscovery(URL) method to create an instance of ServiceDiscovery- Since:
- 2.7.5
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetServiceDiscovery(URL registryURL) Get the instance ofServiceDiscoveryvoidsetApplicationModel(ApplicationModel applicationModel) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware
setFrameworkModel, setModuleModel, setScopeModel
-
Constructor Details
-
AbstractServiceDiscoveryFactory
public AbstractServiceDiscoveryFactory()
-
-
Method Details
-
setApplicationModel
- Specified by:
setApplicationModelin interfaceScopeModelAware
-
getAllServiceDiscoveries
-
getServiceDiscovery
Description copied from interface:ServiceDiscoveryFactoryGet the instance ofServiceDiscovery- Specified by:
getServiceDiscoveryin interfaceServiceDiscoveryFactory- Parameters:
registryURL- theURLto connect the registry- Returns:
- non-null
-