Annotation Interface Order


@Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) public @interface Order
Specifies an order which is used to sort the annotated service methods.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    An order of a method which is annotated by this annotation.
  • Element Details

    • value

      int value
      An order of a method which is annotated by this annotation. The method with the smallest order would be loaded at first. The value could be specified between -2147483648 and 2147483647. The default order is 0 which is the same as if this annotation is not specified.
      Default:
      0