I have the following class structure...

Interface MyInterface
- method doSomething

class BaseClass implements MyInterface
- method doSomething

class ChildClass extends BaseClass
- method doSomething overridden and calls super.doSomething()

I have an Interceptor bound to match calls to execution( public void 
$instanceof{MyInterface}->doSomething...). When doSomething is called on the 
child class, the aspect is called twice seemingly b/c it calls super and the 
super class also implements the interface. This makes sense to me, but the 
behavior I need is to have the the interceptor only called around the call to 
the child class method. 

Is there a way to implement this behavior besides making new AOP configuration 
for each child class that extends BaseClass?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951676#3951676

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951676


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to