aspectJWeaver and pointcut target
I was wondering if it was possible to write an aspect in my aop.xml file (using LTW with aspectJWeaver) that specifies a target expression in the pointcut. For example,
Basically my setup is that MyInterface is an interface and I want to intercept all calls made to doSomething on AnImplClass (AnImplClass implements MyInterface). Is this possible? Thanks.
<concrete-aspect name="MyConcreteAspect" extends="MyAbstractAspect">
<pointcut name="somePointCut" expression="call(public void MyInterface.doSomething(..)) AND target(AnImplClass)" />