javax.ws.rs
Annotation Type BindingPriority


@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 a few built-in priority classes. 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.

Since:
2.0
Author:
Santiago Pericas-Geertsen

Required Element Summary
 int value
          Priority defined for a filter or interceptor.
 

Element Detail

value

public abstract int value
Priority defined for a filter or interceptor.



Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.