O'Reilly logo
  • Marco Shimomoto thinks this is interesting:

@Priority takes an integer that can take any value. The rule is that interceptors with smaller priority values are called first. Java EE 7 defines platform-level priorities and you can then have your interceptors called before or after certain events. The javax.interceptor.Interceptor annotation defines the following set of constants:

  • PLATFORM_BEFORE = 0: Start of range for early interceptors defined by the Java EE platform,
  • LIBRARY_BEFORE = 1000: Start of range for early interceptors defined by extension libraries,
  • APPLICA...

From

Cover of Beginning Java EE 7

Note

CDI Interceptor priority for Interceptor Binding