3 Replies Latest reply on Feb 5, 2010 9:11 AM by nizzy

    Is it possible to intercept method in Abstract Class

    nizzy

      Hi All,

       

      Is it possible to intercept a method in an Abstract Class?

       

      I have tried;

       

           <bind pointcut="execution(protected * xxx.xxx.AbstractHandler->aquireHandler(..))">
                <interceptor-ref name="mockhandler"/>
           </bind>
      
           <bind pointcut="execution(protected abstract * xxx.xxx.AbstractHandler->aquireHandler())">
           <interceptor-ref name="mockhandler"/>
           </bind>
      
           <bind pointcut="execution(protected * xxx.xxx.ConcreteHandler->aquireHandler())">
           <interceptor-ref name="mockhandler"/>
           </bind>