public interface MethodDelegationBinder
Usually, an implementation will attempt to bind a specific source method to a set of target method candidates where all legal bindings are considered for binding. To chose a specific candidate, an
MethodDelegationBinder.AmbiguityResolver
will be consulted for selecting a best binding.| Modifier and Type | Interface and Description |
|---|---|
static interface |
MethodDelegationBinder.AmbiguityResolver
Implementations of this interface are able to attempt the resolution of two successful bindings of a method
to two different target methods in order to identify a dominating binding.
|
static interface |
MethodDelegationBinder.MethodBinding
A binding attempt created by a
MethodDelegationBinder. |
static interface |
MethodDelegationBinder.MethodInvoker
Implementations are used as delegates for invoking a method that was bound
using a
MethodDelegationBinder. |
static interface |
MethodDelegationBinder.ParameterBinding<T>
A binding attempt for a single parameter.
|
static class |
MethodDelegationBinder.Processor
A helper class that allows to identify a best binding for a given type and source method chosing from a list of given
target methods by using a given
MethodDelegationBinder
and an MethodDelegationBinder.AmbiguityResolver. |
| Modifier and Type | Method and Description |
|---|---|
MethodDelegationBinder.MethodBinding |
bind(Implementation.Target implementationTarget,
MethodDescription source,
MethodDescription target)
Attempts a binding of a source method to a given target method.
|
MethodDelegationBinder.MethodBinding bind(Implementation.Target implementationTarget, MethodDescription source, MethodDescription target)
implementationTarget - The target of the current implementation onto which this binding
is to be applied.source - The method that is to be bound to the target method.target - The method that is to be invoked as a delegate.source method to the target method.Copyright © 2014–2016. All rights reserved.