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 enumAn ambiguity resolver that considers the priority of a method as defined by theBindingPriorityannotation. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintThe binding priority for the annotated method. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default priority for methods not carrying theBindingPriorityannotation.
-
Field Details
-
DEFAULT
static final int DEFAULTThe default priority for methods not carrying theBindingPriorityannotation.- 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.
-