接口 ServiceNameMapping
-
@SPI("config") public interface ServiceNameMappingThe interface for Dubbo service name Mapping- 从以下版本开始:
- 2.7.5
-
-
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 static StringbuildGroup(String serviceInterface)Set<String>getAndListen(org.apache.dubbo.common.URL url, MappingListener mappingListener)Get the service names from the specified Dubbo service interface, group, version and protocolstatic ServiceNameMappinggetDefaultExtension()Get the default extension ofServiceNameMappingstatic ServiceNameMappinggetExtension(String name)voidmap(org.apache.dubbo.common.URL url)Map the specified Dubbo service interface, group, version and protocol to current Dubbo service name
-
-
-
方法详细资料
-
map
void map(org.apache.dubbo.common.URL url)
Map the specified Dubbo service interface, group, version and protocol to current Dubbo service name
-
getAndListen
Set<String> getAndListen(org.apache.dubbo.common.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 - 另请参阅:
DynamicConfigurationServiceNameMapping
-
getExtension
static ServiceNameMapping getExtension(String name)
-
-