You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2019/10/30 04:15:30 UTC
[dubbo] branch master updated: add default implementation for
alibaba pacakge compatible class
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new bcfb476 add default implementation for alibaba pacakge compatible class
bcfb476 is described below
commit bcfb476227b7d00afe70647647fe554770b75691
Author: ken.lj <ke...@gmail.com>
AuthorDate: Wed Oct 30 12:15:17 2019 +0800
add default implementation for alibaba pacakge compatible class
---
.../src/main/java/com/alibaba/dubbo/rpc/Protocol.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Protocol.java b/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Protocol.java
index 1803541..d0a1687 100644
--- a/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Protocol.java
+++ b/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Protocol.java
@@ -17,8 +17,13 @@
package com.alibaba.dubbo.rpc;
+import org.apache.dubbo.rpc.ProtocolServer;
+
import com.alibaba.dubbo.common.URL;
+import java.util.Collections;
+import java.util.List;
+
@Deprecated
public interface Protocol extends org.apache.dubbo.rpc.Protocol {
@@ -35,4 +40,9 @@ public interface Protocol extends org.apache.dubbo.rpc.Protocol {
default <T> org.apache.dubbo.rpc.Invoker<T> refer(Class<T> aClass, org.apache.dubbo.common.URL url) throws RpcException {
return this.refer(aClass, new URL(url));
}
+
+ @Override
+ default List<ProtocolServer> getServers() {
+ return Collections.emptyList();
+ }
}