Java interceptor priority -


This may be a trivial question for many of you, but I swear I can not find any more answers

Say I have such a class

  @Interceptors (interceptor class 1.) class myClass {@Interceptors ({Interceptor2.class, Interceptors3.class} ) Public null myMethod () {...}}  

When my method is asked which interceptor is executed and in what order?

Interceptor 2, Interceptor 3 or Interceptor 1, Interceptor 2, Interceptor 3 or Interceptor 2, Interceptor 3, Interceptor 1?

Pre-Thanks

default

  • The default interceptor, if present

    • External interceptor

    • Class Interceptor, if present

    • method interceptor, if present

    • Interceptor method On the Bean Class (USI ng @ Around Invoke)

    Each group (default, class, method) too Order and interceptor @ interceptors are right to left as defined annotations, and then XML interceptor.


  • Comments

    Popular posts from this blog

    apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

    c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

    c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -