[aspectwerkz-user] Advising J2SE dynamic proxies

Vincent VANDENSCHRICK <[email protected]> Thu, 16 Jun 2005 21:39:52 +0200
Newsgroups gmane.comp.java.aspectwerkz.user
Message-ID <[email protected]>
Hi all,
I'm trying to advise J2SE dynamic proxies which are the default 
implementation of my domain model objects without any success. The 
pointcuts definitions are based on the methods of the implemented 
interfaces (something like "execute(void com.foo.Bar+.set*(*))" where 
Bar the interface implemented at runtime by the proxies).
If I define "call" pointcuts, the advices only get triggered when a 
non-proxy implementation call my domain model objects.
If I define "execute" pointcuts, the advices never get triggered.

It seems that the runtime-generated proxy classes can't be instrumented.

I've desperately searched various lists without any success, so I 
apologize if the subject has already been answered. Did anyone come 
accross such a problem ?

Thanks for any hint.

Regards,
Vincent