AspectJ @annotation
pointcuts cannot match annotations on parameters, only on parameter types, i.e. you cannot match on
public foo(@MyAnnotation MyType foo)
but you can only match on
public foo(MyType foo)
if class MyType
is annotated by @MyAnnotation
.
This has been discussed on the AspectJ mailing list and is a feature on the wish list which has not been implemented so far.