Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] method parameter(s) annotation pointcut question

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





      



Back to the top