Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Pointcuts and advices for third party tools

Short response: it is possible. Look for documentation on bytecode weaving. The way to expose a jar to ajc is to use the -injars option on the command line.

Sorry I can't elaborate further,
nick

On Aug 7, 2004, at 6:38 AM, Andreas Guther wrote:

Hi:

I wonder if it is possible to define pointcuts for thirdparty tools (jars) where one does not have the source code and would not compile that code, and for example write advices
that then would log specific classes or methods of a third party jar.

From what I understand so far, the aspectj compiler needs the source code and weaves the codes with the advices to byte code and I have the feeling that defining pointcuts for jar files is not possible. I made some experiments and had no success. But maybe
I was just doing something wrong.

If someone could let me know if this is possible or not, that would be very helpful.

Thanks in advance,

Andreas



_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users


Nicholas Lesiecki
Software Craftsman, specializing in J2EE,
Agile Methods, and aspect-oriented programming

Books:
* Mastering AspectJ: http://tinyurl.com/66vf
* Java Tools for Extreme Programming: http://tinyurl.com/66vt

Articles on AspectJ:
* http://tinyurl.com/66vu and http://tinyurl.com/66vv



Back to the top