PDA

View Full Version : advice firing order?



devvvy
01-22-2009, 07:20 AM
hello, I've associated a method with multiple around advices - my question is, how can I, if it's possible, for me to control the order of invocation?

Also is it possible for Before advice to abort advice invocation and final invoke of the method intercepted *without* throwing an exception? If not, then is "Around" advice my only option?

Thanks!

.ben
01-22-2009, 12:39 PM
Ordering advice: documentation (http://www.springframework.net/docs/1.2.0/reference/html/aop.html#aop-advice-ordering)

Not sure if before advice can change the flow (without exceptions), although I doubt it. I would choose around advice.

John Tjust
01-22-2009, 01:25 PM
For ordering of Advice se the answer I got from Erich Eichinger in this thread:

http://forum.springframework.net/showthread.php?t=5179