Option 2 is the more concrete approach, so something I'd recommend. And for ensuring the ordering you'd then add the `@Order` as a class level annotation as well.
So yes, you're suggested approach was correct. :-)
My guess why it's not part of the Reference Guide (yet), is because it works for Spring users only. Axon does not do anything specific with the annotation, it's Spring which ensure the ordering among those components when they're being called, or for Axon inserted in the handlers list.
Imposing an ordering on your @(Saga)EventHandler annotated functions is not possible. I'd also like to share that I think it's a lot safer to not assume any event ordering at all (apart from an aggregate-created-event which is always prior to it's preceding events), as it is quite hard to guarantee that events will always happen in that exact same order. It's thus safer to take the stance you cannot count on an ordering to begin with.
Hope this helps you out Tim!
Cheers,
Steven
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframework+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframework+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.