I would like to scope the classes considered for weaving for aspects
defined in aop.xml.
I have an aspect is targeting a very specific hunk of code in a
thirdparty library, say package "com.foo.stuff..*". But I also have
other aspects declared in aop.xml that I never want to weave into
classes in that package.
As far as I can tell, I can only include/exclude weaving per all aspects
in the aop.xml. Is this correct, or is there some way to say something like:
<aspectj>
<aspects>
<aspect name="org.opentrader.infra.foo.MyAspect>
<weaver>
<include within="foo.bar..*"/> <!-- for for this aspect -->
</weaver>
</aspect>
...
</aspects>
<weaver options="-verbose -showWeaveInfo">
<include within="com.opentrader..*" /> <!-- for all aspects -->
<!-- Note, I never want any other aspects to weave into
foo.bar..* -->
</weaver>
</aspectj>