Priority of Around Advices for a given Method #8917
-
Suppose I have a method which have three custom around advices specified. I need a specific advice to get invoked first. How can I specify such order or priority ? |
Beta Was this translation helpful? Give feedback.
Answered by
graemerocher
Mar 10, 2023
Replies: 1 comment
-
with either the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
subash89
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with either the
@Order
annotation on each interceptor or implementingOrdered
. Also see https://docs.micronaut.io/latest/api/io/micronaut/aop/InterceptPhase.html which provides some useful constants you can use for the priority value for fitting your interceptor between existing implementations