This content has been marked as final.
Show 1 reply
-
1. Re: annotation processing in Weld
nickarls Nov 8, 2009 8:58 PM (in response to asookazian)Well, this is pretty much how it has to be done(?). If you have a bean Foo with a method car and want dynamically to attach stuff to it when it is called, you can't be allowed to call Foo.bar directly, you'll have to call a proxy Foo that does its magic before/after calling the method is called. Annotations give instructions on how the proxy is to be constructed and perhaps what the proxy should do.
I guess this is doable with AOP also but that includes runtime instrumentation magic that has to be woven into the JRE(?)