Annotation 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 ClassesModifier and TypeClassDescriptionstatic enum
An ambiguity resolver that considers the priority of a method as defined by theBindingPriority
annotation. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionint
The binding priority for the annotated method. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default priority for methods not carrying theBindingPriority
annotation.
-
Field Details
-
DEFAULT
static final int DEFAULTThe default priority for methods not carrying theBindingPriority
annotation.- See Also:
-
-
Element Details
-
value
int valueThe 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.
-