You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/03 10:28:17 UTC

[GitHub] [dubbo] zrlw commented on issue #8567: [2.7.13]多个引用同一个接口的DubboReference分别设置不同的事件回调时,只会生效一个

zrlw commented on issue #8567:
URL: https://github.com/apache/dubbo/issues/8567#issuecomment-912434704


   昨天提交3.0分支的多实例PR经验证测试满足多个reference同一接口分别设置不同回调方法的需求,粗略看了一下代码,大致处理过程如下:
   1. ReferenceConfig的init方法首先为每一个Reference创建一个consumerModel, 每个consumerModel里面的methodConfigs保存了各自配置的onXXX回调方法;然后调用createProxy方法创建代理时,将consumerModel存入了代理对象的handler的serviceModel属性;
   2. 回调处理时,从调用使用的handler的serviceModel取出methodConfigs,里面就有Reference注解的回调方法。
   @chickenlj  期待早日更新2.7.X!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org