@Target(value=TYPE) @Retention(value=RUNTIME) public @interface BindingPriority
Filters and interceptors are grouped in chains for each of the extension points: Pre, PreMatch, Post as well as ReadFrom and WriteTo. Each of these chains is sorted by binding priorities which are represented as integer numbers. All chains except Post are sorted in ascending order; the lower the number the higher the priority. The Post filter chain is sorted in descending order to ensure that response filters are executed in reverse order.
This class defines constants for a few built-in priority levels. Filters
and interceptors that belong to the same priority class (same integer value)
are executed in an implementation-defined manner. By default, i.e. when
this annotation is absent, a filter or interceptor is defined in the
USER class.
| Modifier and Type | Required Element and Description |
|---|---|
int |
value
Priority defined as a positive number for chainable providers
such as filters or interceptors.
|
Copyright © 2013. All Rights Reserved.