Results 1 to 3 of 3

Thread: Problem: AOP pointcut not firing on annotated interface method

  1. #1

    Default Problem: AOP pointcut not firing on annotated interface method

    Hi,

    i introduced a new annotation in my project and i've defined a pointcut on this annotation. If i annotate a method on the implementing class the pointcut is catched, but if i annotate the correspondent method in the interface it will not be catched. What is the problem?

    Regards Matthias

  2. #2
    Join Date
    Apr 2008
    Location
    Seville, Spain
    Posts
    132

    Default

    Is OK. A type that implements one or more interfaces never inherits any annotations from the interfaces it implements.

    Cheers
    Jose Luis Martin
    Freelance Senior Consultant
    JDAL - Java Database Application Library

  3. #3
    Join Date
    Dec 2010
    Location
    Tehran
    Posts
    48

    Default

    It is better that you write your pointcut expression here but I guess you should use call(..) instead of execute(..).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •