Results 1 to 3 of 3

Thread: @Configurable and Hibernate

  1. #1
    Join Date
    Sep 2004
    Location
    Texas
    Posts
    155

    Default 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
    Corby

  2. #2
    Join Date
    Oct 2004
    Location
    Herndon, VA, US
    Posts
    648

    Default

    Quote Originally Posted by cepage
    Should I really need to add the spring aspect sources to my project?
    No, you shouldn't have to do that. Try adding spring-aspects.jar to the aspectpath of iajc.
    --Jing Xue

  3. #3
    Join Date
    Sep 2004
    Location
    Texas
    Posts
    155

    Default

    Thanks, you the man!
    Corby

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •