I would like to autowire instance of bean A to the same instance of A. How can I achieve this with annotation (without XML).
Example:
You can use compile-time weaving (with Aspectj compiler) so aspects do not need proxy to work. Just add this into your pom.xml configuration:
org.aspectj aspectjrt org.codehaus.mojo aspectj-maven-plugin org.springframework spring-aspects