|
Hi Ed, Can you give us some example code? Are
there any compiler warnings? Did you import the types? What is the signature of
the execute method you are hoping to match? From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Lauder Still cant get it woven. From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Bodden You can use: pointcut notifyExecute(Event e) : in that case. (assuming “e”
is the first parameter) Eric From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of I tried that along with target(e). The
aspect compiles but does not get woven. There are three params that get passed
into the method execute(). Do all three need to be passed into the
notifyExecute pointcut? From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric Bodden Try something like… pointcut notifyExecute(Event e) : after(Event event)
returning : notifyExecute(event) {
ystem.out.println(“Event was: “+event); Eric From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of I am trying to pass parameters from the
point cut into the after advice. My point cut gets the correct classes that
I wish woven. The problem is getting the values passed in to point cut
into the advice. Simply: pointcut notifyExecute() : after() returning :
notifyExecute() { There is an Event param that gets passed
into the execute method and I would like to get access to the object within the
after advice. |
_______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
