hehuang139 commented on issue #9171:
URL: https://github.com/apache/dubbo/issues/9171#issuecomment-1157477692

   > 自己已处理
   
   
能问下是怎么实现的吗?目前也遇到同样的需求,为了提升app的启动速度,我是打算用spring自带的@Lazy机制实现,但是发现这个机制需要@Autowired来识别inject,但是ServiceConfig的ref字段没有@Autowired导致无法识别,目前考虑了几种方案
   1. 
AutowiredAnnotationBeanPostProcessor参考,在加一个BeanPostProcessor来实现,识别Ref字段,注入TargetSource,
   2. 
还是在AutowiredAnnotationBeanPostProcessor基础上,修改dubbo的源码,构造DependencyDescriptor和TargetSource来实现。
   我先自己实现,如果先做完就提个pr上来。


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to