Annotation Type BindingPriority


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface BindingPriority
Defines a binding priority for a target method. If two target methods can be bound to a source method, the one with the higher priority will be selected.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    An ambiguity resolver that considers the priority of a method as defined by the BindingPriority annotation.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The binding priority for the annotated method.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default priority for methods not carrying the BindingPriority annotation.
  • Field Details

  • Element Details

    • value

      int value
      The binding priority for the annotated method. A method of higher priority will be preferred over a method of lower priority.
      Returns:
      The priority for the annotated method.