Aug 16th, 2006, 06:45 PM
Weaving with AspectJ Sources
I was finally able to get AspectJ to weave the @Configurable annotation into my domain objects by placing spring-framework-2.0-rc3\aspectj\src into my source path when I invoke iajc, as the test cases do.
It would seem to me that just placing spring-aspects.jar into my classpath when I compile should be sufficient, but when I do that the Configurable aspect does not get weaved at build time.
I'm missing something fundamental in my understanding of how weaving works. Should I really need to add the spring aspect sources to my project?
Last edited by cepage; Aug 16th, 2006 at 09:35 PM.
Reason: Excuse the confusing thread name
Aug 17th, 2006, 10:03 AM
No, you shouldn't have to do that. Try adding spring-aspects.jar to the aspectpath of iajc.
Originally Posted by cepage
Aug 17th, 2006, 11:34 AM