[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Re: [NEWSDELIVER] Applying aspects to third-party code


Michael,

You need to use the binary weaving capability http://www.eclipse.org/aspectj/doc/released/devguide/ajc-ref.html in particular -inpath, -aspectpath and -outjar.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx

http://w3.hursley.ibm.com/~websterm/

To:        undisclosed-recipients:;
cc:        
Subject:        [NEWSDELIVER] Applying aspects to third-party code



Hello,

I am new to AOP, thus my question may seem trivial.

I have an Eclispe project with a few classes. Thos eclasses depend on a
number of third-party JAR files, such as Spring and Hibernate. When I add
an apsect to my project, the weaver applies the aspect to the classes in
my project. WHat I am trying to do is to apply aspects to Spring or
Hibernate code. (For example I would like to trace the calls below the
level of my own code). Is there an easy way to do it without completely
rebuilding the third party JARs?

Thank you.

Michael