[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] invoking methods using reflection
|
did you use execution() or call() in your pointcut?
My guess is that execution() will work with reflection,
but call() won't. However this is just a guess at this
point.
Frank
-----Original Message-----
From: Jason Berry [mailto:jasonrichardberry@xxxxxxxxx]
Sent: Thursday, August 21, 2003 1:15 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] invoking methods using reflection
I am brand spanking new to AspectJ so forgive me if
this is a stupid question or I get some terminology
wrong.
I set up a pointcut for methodA and some corresponding
advise that just prints out a message. When I call
methodA directly the message from the advise is
printed, everything is fine. When I invoke methodA
using reflection the message from the advise doesn't
get printed.
Do method calls made using reflection not trigger
advise? Do I need to declare the pointcut differently
if I plan to call the method it references via
reflection?
Jason
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users