spring.net - Spring AOP Limitation when advised method calls methods on target -


my use case log every method call on object. after adding method interceptor on target object, call method foo. method foo calls method bar. method foo logged.

class myclass {    public void foo() {bar();}    public void bar() {} } 

reading spring documentation, have found sentence explained why cannot implement want. spring documentation (page 146):

please note in both cases target method implementation calls other methods on target object not advised.

am missing here? or spring limitation?

a start of solution...

http://www.digizenstudio.com/blog/2007/05/29/the-self-calling-limitation-in-spring-aop-and-one-unintrusive-solution/

edit finally, decided switch castle aop. propose class proxy feets needs.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -