This content has been marked as final.
Show 1 reply
-
1. Re: Tracking an object
kabirkhan Jul 12, 2005 6:56 AM (in response to oberon777)That is not possible, pointcuts are static.
However, you can intercept calls to Class.forName(), and use the dynamic per-instance api to add interceptors to the returned object. For this to work though, the returned objects need to have been prepared.
http://docs.jboss.com/aop/1.3/aspect-framework/examples/dynamic-aop/dynamic.html
http://docs.jboss.com/aop/1.3/aspect-framework/reference/en/html/dynamic.html