public class PropertiesFileServiceNameMapping extends ReadOnlyServiceNameMapping
Properties file implementation of ServiceNameMapping,
the default properties class path is
"/META-INF/dubbo/service-name-mapping.properties",
whose format as following:
dubbo\:com.acme.Interface1\:default = Service1 thirft\:com.acme.InterfaceX = Service1,Service2 rest\:com.acme.interfaceN = Service3
THe search path could be configured by the externalized property CommonConstants.SERVICE_NAME_MAPPING_PROPERTIES_FILE_KEY
ReadOnlyServiceNameMapping,
ParameterizedServiceNameMappingCOMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY| 构造器和说明 |
|---|
PropertiesFileServiceNameMapping() |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<String> |
get(URL subscribedURL)
Get the service names from the subscribed Dubbo service
URL |
int |
getPriority()
Get the priority
|
mapget, getDefaultExtension, mapcompareTopublic Set<String> get(URL subscribedURL)
ServiceNameMappingURLpublic int getPriority()
Prioritizedminimum oneCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.