javax.annotation

## Annotation Type Priority

-     @Target(value=TYPE)
      @Retention(value=RUNTIME)
      @Documented
      public @interface Priority

  The Priority annotation can be applied to classes to indicate in what order the classes should be used. The effect of using the Priority annotation in any particular instance is defined by other specifications that define the use of a specific class.

  For example, the Interceptors specification defines the use of priorities on interceptors to control the order in which interceptors are called.

  Priority values should generally be non-negative, with negative values reserved for special meanings such as "undefined" or "not specified". A specification that defines use of the Priority annotation may define the range of allowed priorities and any priority values with special meaning.

  Since:
    Common Annotations 1.2

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `int` | `value` The priority value.

- - ### Element Detail

    - #### value

          public abstract int value

      The priority value.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.