Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] aspects that crosscut a mix of my code and classes in jars

I am writing some aspects that crosscut classes that come from a combination of my own classes that extend classes from other sources in a Tomcat Web application and other classes in third party jars that extend those same classes.

I am new to AspectJ but not new to Java or webapps, so I am looking more for the proper approach, not specific help with the code.

For example is it better to have all the aspects in my code included in the build of my classes/jars and to have all the aspects that crosscut the classes in the third party jars in a separate build and output the byteweaved classes into a separate jar?

If I have aspects that crosscut just a few of the classes in a third party jar, do I need to have BOTH the third party jar and the new weaved jar in the classpath, i.e. the WEB-INF/lib? Or does the weaved jar have all the classes, both weaved and not weaved from the original -injars and therefore should NOT be in the classpath?

Ollie





Back to the top