-
I want to instrument all methods of a specific class in an application implemented with a Spring project. I have specified the class using the typeMatcher method and used typeTransformer.applyAdviceToMethod in the transform function. However, it seems like not all methods are being instrumented, even though I declared any() for all methods. None of the methods are being executed. When I specify particular methods, the Advice class I added gets called. Is there a solution for this?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I've resolved the issue, so I'll provide a self-answered consultation. I had tried using nameMatches(".*"), but it didn't work, so I was considering other methods. It turned out that the issue was with the regular expression. .* -> +*
|
Beta Was this translation helpful? Give feedback.
-
Turn on debug logging. You'll probably see something like
|
Beta Was this translation helpful? Give feedback.
Turn on debug logging. You'll probably see something like