Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] aspect framework: independently weaving against multiple jars

Hi,

there was a problem in weaving in framework aspects independently 
(logging, quality insurance, cache etc.)
in multiple libraries that will be used at the same time loaded
by the same classloader in aspectj 1.0 because the weaving in 
resulted in different aspect class files. You can only have
one aspect class file in the classpath. The result was often
a NoSuchFieldException and unpredictable behaviour.

What is the status of this issue with version 1.1 and
byte code weaving? Is it now possible to weave in
a set of framework aspects independently to some libraries 
and have the same aspect class that can safely be used 
at runtime for all libraries?

The following example might illustrate this.
There might be a jakarta-commons-aspect project with
some cool stuff. Is it possible to distribute
aspect enabled jar of beanutils, lang etc. that are
independently created (without each other during
weaving in) and use them together?

And how can one distribute a jar containing the
class files of the aspects? Is there a way to create
these class files alone meaning not weaving against
some target classes so that the framework can distribute
binaries?

The goal is to always have the same (runtime compatible) 
aspect.class (deliverable) out of the same source file and
the ability to create them without having targets around.

Is this possible?

Thanks,
Vincenz



Back to the top