I have a custom PointcutAdvisor (extends StaticMethodMatcherPointcutAdvisor) which implements that implements it' matches() method to match all methods that implement a custom annotation (@Audited).
My pointcut was not being triggered for certain methods that I had annotated with the @Audited method and mu debugging led me to print out all the Classes/methods that were being passed to my pointcut matches() method.
looking at the results, i quickly saw that all of my classes which had @Transactional annotation on at least one method were not being passed to the pointcut matches() method for matching.
I feels like it must be something to do with the proxying of the @Transactional classes, but certainly unexpected behaviour.
Any ideas?
Thanks


Reply With Quote