by zvika
border:

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

tags:
border:

Hi,

 

I faced a problem using using AspectJ compiler Maven Plugin.  After hours of googling I didn't manage to make it work for my aspects, however my AJDT eclipse pluging compiles and works with aspects perfectly.

 

While running maven i get such warning:

[WARNING] advice defined in test.package.MyTest$TestAspects has not been applied [Xlint:adviceDidNotMatch]

 

pom.xml:

by keren
border:

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: