Announcement Announcement Module
Collapse
No announcement yet.
Problem: AOP pointcut not firing on annotated interface method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Is OK. A type that implements one or more interfaces never inherits any annotations from the interfaces it implements.

    Cheers

    Comment


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

      Comment

      Working...
      X