You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/04/27 03:30:45 UTC
[GitHub] [shardingsphere-elasticjob] kaihekaihe opened a new issue #1882: How do Listeners inject beans in spring?
kaihekaihe opened a new issue #1882:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1882
## Feature Request
**For English only**, other languages will not accept.
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot make decision by current information, we will **close it**.
Please answer these questions before submitting your issue. Thanks!
### Is your feature request related to a problem?
### Describe the feature you would like.
In the elasticjob 3.0.0-RC1,the listeners are instanced by spi,the beans in spring(eg. @Autowired words in spring) can not be injected into the listener instance.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #1882: How do elasticjob listeners inject beans in spring?
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #1882:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1882#issuecomment-827601067
Hi @kaihekaihe
The listener doesn't support inject spring beans for now. Consider lazily retrieving beans by some static context holder.
We're thinking about that replace SPI factory with Spring containers if the Spring dependencies present.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org