1 Reply Latest reply on Sep 19, 2005 11:09 AM by bill.burke

    matching interface methods in an implemenation class

    freezy

      Hi :-)

      I would like to match all methods of an Interface "IntA" in an implementation "ImplB".
      This is what I tried to use:

       <bind pointcut="within(eshop.ImplB) AND has(* eshop.IntA->*(..))">
       <advice name="trace" aspect="eshop.aop.TraceAspect"/>
       </bind>
      


      I also tried:

       <bind pointcut="execution(public * eshop.pojo.biz.EShopAppImpl->*(..)) AND has(* eshop.IntA->*(..))">
       <advice name="trace" aspect="eshop.aop.TraceAspect"/>
       </bind>
      


      Unfortunately, neither did work :-(

      The basic problem is that I would like to apply an Interceptor to a classes' methods as they are available in the SOURCE code. But if the class gets additional methods because of AOP-Mixins, then they are intercepted as well.

      Thanks,
      freezy