Hi,
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.Code:<concrete-aspect name="MyConcreteAspect" extends="MyAbstractAspect"> <pointcut name="somePointCut" expression="call(public void MyInterface.doSomething(..)) AND target(AnImplClass)" /> </concrete-aspect>
Jeff


Reply With Quote