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,
ParameterizedServiceNameMapping| 构造器和说明 |
|---|
PropertiesFileServiceNameMapping() |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<String> |
get(org.apache.dubbo.common.URL subscribedURL)
Get the service names from the subscribed Dubbo service
URL |
int |
getPriority() |
mapget, getDefaultExtension, mappublic Set<String> get(org.apache.dubbo.common.URL subscribedURL)
ServiceNameMappingURLsubscribedURL - the URL that the Dubbo consumer subscribedSetpublic int getPriority()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.