java - Define a pointcut on a member access and function call -
it's quite hard explain want define in aspectj pointcut upon call of function this:
public class b{ public a; } public class a{ public void foo(){...} } and pointcut should intercept following call:
b.a.foo(); i still haven't figured out way (if there any). of have idea?
thanks in advance
i'm aspectj newbie myself too, feeling isn't possible. if devised pointcut matched b.a.foo(), you'd still have somehow handle following case:
a = b.a; a.foo(); or even
public void fooa(a atofoo) { atofoo.foo(); } public void whatever(b someb) { fooa(someb.a); }
Comments
Post a Comment