Module spring.data.commons
Interface MethodLookup
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface providing
predicates to resolve a method called on a composite to its
implementation method.
Predicates are ordered by filtering priority and applied individually. If a predicate does
not yield any positive match, the next predicate is applied.
- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classValue object representing an invokedMethod.static interfaceA method predicate to be applied on theMethodLookup.InvokedMethodandmethod candidate. -
Method Summary
Modifier and TypeMethodDescriptiondefault MethodLookupand(MethodLookup other) Returns a composedMethodLookupthat represents a concatenation of this predicate and another.Return an orderedListofMethodLookup.MethodPredicate.
-
Method Details
-
getLookups
List<MethodLookup.MethodPredicate> getLookups()Return an orderedListofMethodLookup.MethodPredicate. Each predicate is applied individually. If anyMethodLookup.MethodPredicatematches, the tested candidateMethodpasses the filter.- Returns:
ListofMethodLookup.MethodPredicate.
-
and
Returns a composedMethodLookupthat represents a concatenation of this predicate and another. When evaluating the composed method lookup, if this lookup evaluatestrue, then theothermethod lookup is not evaluated.- Parameters:
other- must not be null.- Returns:
- the composed
MethodLookup.
-