Announcement Announcement Module
Collapse
No announcement yet.
before and after advice as opposed to around advice - any suggestions? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • before and after advice as opposed to around advice - any suggestions?

    Hi,
    My question is, will there be any performance benefit if we did a before and after advice instead of an around advice (provided we dont need to change the return param itself, and we are expecting the happy path (no exceptions etc))

    Thanks,
    Sasipriya

  • #2
    The general recommendation is to use the simplest advice that will get job done. The reason is clear semantics and simplified use (no worry about calling proceed()). However, performance is not a consideration in using one advice over other; in Spring AOP, internally everything works as around advice anyway.

    -Ramnivas

    Comment

    Working...
    X