I need to define a pointcut on a class annotation with determined value.
such a thing:
Code:@LogMe(LogginLevel.INFO) class foo{ void bar() ... }This works for such a pointcut but on method annotation:
Code:execution(@com.tosan.LogMe(com.tosan.LoggingLevel.INFO) * *(..))And these work for a class annotation but without any value:
Code:execution(* *(..)) && within(@com.tosan.LogMe *) execution(* *(..)) && @within(com.tosan.LogMe)And these combined expressions fail:
Code:execution(* *(..)) && within(@com.tosan.LogMe(com.tosan.LoggingLevel.INFO) *) execution(* *(..)) && within(@com.tosan.LogMe(com.tosan.LoggingLevel.INFO) ..*) execution(* *(..)) && @within(com.tosan.LogMe(com.tosan.LoggingLevel.INFO) *) execution(* *(..)) && @within(com.tosan.LogMe(com.tosan.LoggingLevel.INFO) ..*)


This works for such a pointcut but on method annotation:
And these combined expressions fail:
Reply With Quote
