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...
edit finally, decided switch castle aop. propose class proxy feets needs.
Comments
Post a Comment