[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] the around pointcut
|
Did you try something like this (the code is not tested, just a skeleton)?
public int xyz(int a, int b, int c) {
....
return a+b+c;
}
int around(int a, int b, int c) : execution(* *.xyz(int, int, int)) && args(a, b, c) {
return proceed(a + 10, b, c);
}
And did you make sure that your pointcut is matching the method?
Regards,
Thiago
On 1/12/06, Sunny Saxena <matrixsu_in@xxxxxxxxx
> wrote:
I am trying to intercept a function which performs some basic calculation stuff and returns an int value.
public int xyz(int a, int b, int c) {
....
return a+b+c;
}
i
want to intercept the call/execution(its in a web service), change one
of the arguments, i.e. say, value of argument from 10 to 20, then
let it pass and continue normal execution. I tried using the around()
point cut, but i still get the same output.
Sunny...as always
-----------------
http://brokenshard.blogspot.com
Yahoo! Photos – Showcase holiday pictures in hardcover
Photo Books. You design it and we'll bind it!
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users