Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] type matching & weaving

Hi.
I have 3 classes:
1) Interface: myInterface
2) Class myClass (implements myInterface)
3) Extended myExtendedClass (extends myClass, and overrides a method)

I have a pointcut defined on a method on myInterface, which at runtime, is executed via the extended class. The advice will be run ok whenever I dont add any includes to the weaver options.
If however I add the names of the classes via an include  eg <include within="com.morty.test.myInterface" />, then the advice is never executed.

The files however are weaved, and the weaveInfo shows the advice being linked, with or without the <include>
Obviously, there is a performance hit with having every class go through the weaver, and so i want to limit it.

Any idea why this would happen?

Many thanks in advance

Andy

Back to the top