接口 ServiceNameMapping
-
@SPI("metadata") public interface ServiceNameMapping
The interface for Dubbo service name Mapping- 从以下版本开始:
- 2.7.5
-
-
字段概要
字段 修饰符和类型 字段 说明 static String
DEFAULT_MAPPING_GROUP
-
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 static String
buildGroup(String serviceInterface)
static String
buildMappingKey(URL url)
Set<String>
getAndListenServices(URL registryURL, URL subscribedURL, MappingListener listener)
1.developer explicitly specifies the application name this interface belongs to 2.check Interface-App mapping 3.use the services specified in registry url.static Set<String>
getAppNames(String content)
static ServiceNameMapping
getDefaultExtension()
Get the default extension ofServiceNameMapping
Set<String>
getServices(URL subscribedURL)
1.developer explicitly specifies the application name this interface belongs to 2.check Interface-App mappingvoid
map(URL url)
Map the specified Dubbo service interface, group, version and protocol to current Dubbo service namestatic String
toStringKeys(Set<String> serviceNames)
-
-
-
方法详细资料
-
map
void map(URL url)
Map the specified Dubbo service interface, group, version and protocol to current Dubbo service name
-
getDefaultExtension
static ServiceNameMapping getDefaultExtension()
Get the default extension ofServiceNameMapping
- 返回:
- non-null
ServiceNameMapping
-
getServices
Set<String> getServices(URL subscribedURL)
1.developer explicitly specifies the application name this interface belongs to 2.check Interface-App mapping
-
getAndListenServices
Set<String> getAndListenServices(URL registryURL, URL subscribedURL, MappingListener listener)
1.developer explicitly specifies the application name this interface belongs to 2.check Interface-App mapping 3.use the services specified in registry url.
-
-