I had actually seen that link before, but that seems to show how to set includes and excludes for all aspects. I was just trying for a single aspect.
I basically wanted to try to do something like this:
Code:
<aspectj>
<aspects>
<!-- define a concrete aspect inline -->
<concrete-aspect name="com.xyz.tracing.MyTracing"
extends="tracing.AbstractTracing">
<pointcut name="tracingScope" expression="call(* MyClass.myMethod(..))"/>
</concrete-aspect>
</aspects>
<weaver options="-verbose">
<include within="javax.*"/>
</weaver>
</aspectj>
As it is, this would make sure com.xyz.tracing.MyTracing would be executed on any call to MyClass.myMethod(), but I would also like it to only be executed when the "this" object (i.e. the caller) is of type MyCaller. So it would be 2 expressions combined into 1. Is that possible?
Thanks,
Jeff