Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Variable arguments lenght

Within your around advice you can use the following:
 
thisJoinPoint.getArgs()
 
Get all the arguments passed in.  See the following links for some details:
 
http://www.eclipse.org/aspectj/doc/released/progguide/language-thisJoinPoint.html <http://www.eclipse.org/aspectj/doc/released/progguide/language-thisJoinPoint.html> 
http://www.eclipse.org/aspectj/doc/released/runtime-api/org/aspectj/lang/JoinPoint.html <http://www.eclipse.org/aspectj/doc/released/runtime-api/org/aspectj/lang/JoinPoint.html> 
 
Ron DiFrango


________________________________

From: aspectj-users-bounces@xxxxxxxxxxx on behalf of fifre.news@xxxxxxx
Sent: Fri 4/27/2007 9:17 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Variable arguments lenght



Hello,
I defined the following pointcut :
pointcut MyPointCut(): call(MyClass+ * (..))

And I try to use it in an "around" advice.
I want to get the method's parameters (in the context), without 
knowing neither their number, nor their type.
So i guess i can't use the args() keyword in a classic way...
What can i do?

Thanks,
Bastien.
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


<<winmail.dat>>


Back to the top