You will want to use thisJoinPoint.getArgs() to get the array of any number
of arguments at the current join point. See the AspectJ user guide (or a
good book like AspectJ in Action or Eclipse AspectJ) for more details.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Rose
Sent: Wednesday, October 31, 2007 1:40 PM
To: [email protected]
Subject: [aspectj-users] Modifying the parameters of methods with
arbitrarysignatures

I want to use aspectj to provide a generic interceptor framework where 
we can plug in code at any point to modify input parameters to our methods.

Ideally, what I want is something like this, but I'm not sure how to 
accomplish it in aspectj (this uses a bastardization of the Java5 
varargs syntax, below, for illustrative purposes).

around(Object... args): methodPointCut(args(args)) {
     newArgs = invokeHook (args);
     proceed(newArgs);
}

Is there any way to do this without needing to enumerate the parameters 
in the aspect?

-- 
Chris Rose
Developer    Planet Consulting Group
(780) 577-8433
[EMAIL PROTECTED]
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

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

Reply via email to