@FunctionalInterface public interface MethodLookup
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.RepositoryComposition| Modifier and Type | Interface and Description |
|---|---|
static class |
MethodLookup.InvokedMethod
Value object representing an invoked
Method. |
static interface |
MethodLookup.MethodPredicate
A method predicate to be applied on the
MethodLookup.InvokedMethod and method candidate. |
| Modifier and Type | Method and Description |
|---|---|
default MethodLookup |
and(MethodLookup other)
Returns a composed
MethodLookup that represents a concatenation of this predicate and another. |
List<MethodLookup.MethodPredicate> |
getLookups()
Return an ordered
List of MethodLookup.MethodPredicate. |
List<MethodLookup.MethodPredicate> getLookups()
List of MethodLookup.MethodPredicate. Each predicate is applied individually. If any
MethodLookup.MethodPredicate matches, the tested candidate Method passes the filter.List of MethodLookup.MethodPredicate.default MethodLookup and(MethodLookup other)
MethodLookup that represents a concatenation of this predicate and another. When
evaluating the composed method lookup, if this lookup evaluates true, then the other method lookup
is not evaluated.other - must not be null.MethodLookup.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.