Hi all,
Had a doubt regarding the spring AOP or rather AOP in general.
If I have a class having 2 methods -
MethodA() and
MethodB().
Before advice is applied to MethodA() so that another method(lets say
MethodC()) is called before it. This works fine if you instantiate the class through ApplicationContext and call MethodA() on that instance.
Would that method be called if we call methodA() from MethodB() directly(as in, a java method call), considering that MethodB() is called on an instance instantiated through Spring's ApplicationContext??
Its not getting called..
Please clarify whether its correct as per AOP's rules or not.
Regards,
Sumeet