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 Classes Modifier and Type Interface Description static class
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Bound<T extends java.lang.annotation.Annotation>
A bound handler represents an unambiguous parameter binder that was located for a given array of annotations.static class
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.Unbound
An unbound handler is a fallback for returning an illegal binding for parameters for which no parameter binder could be located.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDelegationBinder.ParameterBinding<?>
bind(MethodDescription source, Implementation.Target implementationTarget, Assigner assigner)
Handles a parameter binding.boolean
isBound()
Indicates if this handler was explicitly bound.
-
-
-
Method Detail
-
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.
-
-