Announcement Announcement Module
Collapse
No announcement yet.
how do I use the aop:advisor to for the before advice type Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how do I use the aop:advisor to for the before advice type

    Hi,

    All the examples and code I saw would trigger the invoke() method of the class. I failed to find any example of invoking the before() method.

  • #2
    Implement the MethodBeforeAdvice interface and it will do that automatically.

    However with a MethodInterceptor you can achieve the same results. Simple execute your additional stuff before calling the method.proceed().

    Comment


    • #3
      You can also refer to Mark Fisher’s Blog which shows a nice example for logging using aop:aspect style before advice.

      -Nikhil

      Comment

      Working...
      X