接口 ServiceNameMapping
-
- 所有已知实现类:
MetadataServiceNameMapping
@SPI("metadata") public interface ServiceNameMapping
The interface for Dubbo service name Mapping- 从以下版本开始:
- 2.7.5
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringDEFAULT_MAPPING_GROUP
-
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 static StringbuildGroup(String serviceInterface)static StringbuildMappingKey(URL url)Set<String>getAndListen(URL url, MappingListener mappingListener)Get the service names from the specified Dubbo service interface, group, version and protocolstatic Set<String>getAppNames(String content)static ServiceNameMappinggetDefaultExtension()Get the default extension ofServiceNameMappingvoidmap(URL url)Map the specified Dubbo service interface, group, version and protocol to current Dubbo service namestatic StringtoStringKeys(Set<String> serviceNames)
-
-
-
方法详细资料
-
map
void map(URL url)
Map the specified Dubbo service interface, group, version and protocol to current Dubbo service name
-
getAndListen
Set<String> getAndListen(URL url, MappingListener mappingListener)
Get the service names from the specified Dubbo service interface, group, version and protocol- 返回:
-
getDefaultExtension
static ServiceNameMapping getDefaultExtension()
Get the default extension ofServiceNameMapping- 返回:
- non-null
ServiceNameMapping
-
-