Hello AspectJ users,

I would like to know if it's possible to have a pointcut that will capture the 
execution of all the methods which have AT LEAST one parameter annotated with a 
specific annotation.

The following pointcut "execution( * * *(@Foo(*)))" will capture the methods 
having ONLY one parameter and "execution( * * *(@Foo(..)))" is not a valid 
pointcut. 

Basically I would like to capture the following kind of method signatures:

....method(@Foo Object param)//captured by execution( * * *(@Foo(*)))
....method(@Foo Object param, Object param2)
....method(@Foo Object param, @Foo Object param2)
 
Thanks,

Adrian
http://aoplib4j.org





      

_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to