Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] A newbie writes

Title: RE: [aspectj-users] A newbie writes

Matthew Webster wrote:

> The get and set pointcuts have the same context as the call pointcut in the
> "this" binds to the object accessing the field and "target" to the object
> owning the field rather than the field itself. So in the following example
> we can use before advice with set and args pointcuts to inspect changes to
> the "string" field and after returning advice with the get pointcut to
> inspect fields accesses. Remember target will not bind to static fields and
> using this will exclude static accessor methods.

I think I follow that - and I was able to get your example working so I guess that's the best way to inspect the value of something being get()-ed.

Thanks for the info.


Robbie


__________________________________________________
This electronic message contains information which may be privileged and confidential.  The information is intended to be for the use of the individual(s) or entity named above.  If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.  If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer.


Back to the top