aspectj

Great presentation based on a lecture given by Yoav Abrahami at Wix.com, which I went to this week - thanks for the invitation, Olga!

AspectJ, AOP, code genetation, and other really interesting & cool stuff!

 

http://www.slideshare.net/yoavwix/java-bytecode-and-classes

zvika 29/11/2010 - 08:32

Hey,

My problem is a little complicated. I'll try to explain in details - but pls do not hesitate and ask for clarifications...

I have a product - applet based. I want to manipulate the code on run-time using aspectj. Since the applet is running on the client jvm I can't load it with '-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader' as with applications.

My current solution is to 'replace' the applet tag in the jsp - to call a wrapper applet. The wrapper applet is initiate the product with the aspectj classloader:

            URL source = new URL("jar:"+getCodeBase()+"aProduct.jar!/");

            URL aspect = new URL("jar:"+getCodeBase()+"myAspects.jar!/");

            URL[] urlList = {source, aspect };

keren 18/11/2008 - 08:32
Syndicate content