Self-Injection is better than horrendous AopContext.currentProxy()
Comment From: sbrannen
Hi @quaff,
Self-Injection is better than horrendous
AopContext.currentProxy()
Yes, I totally agree that with! 👍
However, after further analysis, I realized that we cannot use @Autowired
in the example you modified in this PR.
In addition, I noticed there was room for improvement in other areas.
In light of that, I am closing this PR as superseded by the following.
-
33454
-
33455
Thanks anyway for the PR!
Comment From: sbrannen
@quaff, we may not actually have a "self injection" example anywhere in the reference manual. So, if you'd like to submit a new PR with such an example, feel free to do so.
It should probably go in the new Self Injection sidebar here: https://raw.githubusercontent.com/spring-projects/spring-framework/main/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired.adoc#beans-autowired-annotation-self-injection
Comment From: quaff
@quaff, we may not actually have a "self injection" example anywhere in the reference manual. So, if you'd like to submit a new PR with such an example, feel free to do so.
It should probably go in the new Self Injection sidebar here: https://raw.githubusercontent.com/spring-projects/spring-framework/main/framework-docs/modules/ROOT/pages/core/beans/annotation-config/autowired.adoc#beans-autowired-annotation-self-injection
@sbrannen I created https://github.com/spring-projects/spring-framework/pull/33462.