I am trying to intercept method calls from Jython code out to Java code so that I can put in place some statistics monitoring. Specifically, I am trying to intercept calls to methods annotated with some particular annotaion (@Auditable, say) and mesure the time and frequency of method invocation.

What would be the best way of going about this, without using a full blown AOP framework? Is there some way to override __getattr__ (thats what I would do in pure python)?


Johannes Woolard,

Prime Finance IT
Deutsche Bank AG, London
Tel: +44 (20) 754 11969


This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.