You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2022. It is now read-only.
现在注解是在ReferenceAnnotationBeanPostProcessor阶段处理,扫描注解创建RPC代理对象,并通过反射的方式放到了注入点。
想法:
TestFacade SofaRpcFactory.create(TestFacade.class, props)。这样做可以直接将Client初始化完全黑盒在RPC组件内,将Facade的生命周期绑定到spring容器中去,初始化阶段不再依赖注解,显式的用
@Bean将RPC和Spring连接起来。这个想法来源于Retrofit2的客户端构造过程:
retrofit2.Retrofit#create@SofaRpcClient注解,或者开发者需要给出一个调用Facade 的Class列表供框架扫描。这个想法来源于 Spring Cloud FeignClient的做法