@annotation(my.package.MyAnnotation)
This can be used in place of :
execution(public * my.package.MyService.serviceMethod(*))
...or in combination with it. But one important point : the annotation being intercepted must be in service method implementations (ie concrete class implementations), not on the service method interface declarations! Otherwise Spring AOP will not be able to read and intercept the annotated methods / classes
1 comment:
Alex
Love your blog. Do you think I could chat to you on IM sometime? I am a DC based programmer with some similar experience as yours!
Please email me your IM details
Many thanks
Horst
horstpember@yahoo.com
Post a Comment