Interface TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
- All Known Implementing Classes:
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound
,TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
- Enclosing class:
TargetMethodAnnotationDrivenBinder.DelegationProcessor
protected static interface TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
A handler is responsible for processing a parameter's binding.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A bound handler represents an unambiguous parameter binder that was located for a given array of annotations.static class
An unbound handler is a fallback for returning an illegal binding for parameters for which no parameter binder could be located. -
Method Summary
Modifier and TypeMethodDescriptionbind
(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.boolean
isBound()
Indicates if this handler was explicitly bound.
-
Method Details
-
isBound
boolean isBound()Indicates if this handler was explicitly bound.- Returns:
true
if this handler was explicitly bound.
-
bind
MethodDelegationBinder.ParameterBinding<?> bind(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner) Handles a parameter binding.- Parameters:
source
- The intercepted source method.implementationTarget
- The target of the current implementation.assigner
- The assigner to use.- Returns:
- A parameter binding that reflects the given arguments.
-