Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Local variables and other topics

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am new to AspectJ and have a couple questions.

First of all, can you access local variables in a function call from your aspect code?  I have a local string in all of my methods with I would like to log from the aspect, but I am not quite sure how to do this.

Second, is it possible to exclude a function for a particular class in you point cut declaration when using wildcard?  I am using the Struts architecture, and I have declared my pointcuts on the execute() function:

    pointcut log():
	execution(* *.execute(..));

I want to used the log() function for all calls to execute(), except for the one in my Logon class.  For Logon I want to call a different function.  Can someone tell me a simple way of doing this.

Thanks,
Brian Kidney

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPykjK+LP0vXx30WgEQI2LQCfdkVfz8dy5/RhneX96ZQaKpLOIG0AoNC+
4AucdFMVZvk6te69KVZOlxGV
=l8sE
-----END PGP SIGNATURE-----




Back to the top