I\'m using AspectJ to advice all the public methods which do have an argument of a chosen class. I tried the following:
pointcut permissionCheckMethods(Sessi
How about:
pointcut permissionCheckMethods(Session sess) :
(execution(public * *(..)) && args(.., sess));
I guess this will match if last (or only) argument is of type Session. By swapping the positions of args you can also match first-or-only. But i don't know if matching any arbitrary position is possible.