I'm sure this may be a very basic question, but unfortunately, the application I'm working on behaves different from my simple test case. This is with regards to AOP Proxy and and Aspects.
Assume bean "test" is the target of an Aspect X.
I find that when i do a ApplicationContext.getBean("test") and run some method, the Aspect fires correctly. However, once inject "test" into another bean as a setter dependency, the aspect no longer fires.
I'm inserting <bean class="org.springframework.aop.aspectj.annotation. AnnotationAwareAspectJAutoProxyCreator" /> into my xml config.
So my questions are:
1) When using setter dependency injection, does it not create a Proxy - thus not allowing the Aspect to fire?
2) I assume ApplicationContext.getBean() makes use of Proxy?
3) Is there a scenarion where the above could potentially happen? Somehow where Applicationcontext.getBean() interferes with the dependency injection of a target bean of an aspect.
thanks in advance