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.HandlerA handler is responsible for processing a parameter's binding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTargetMethodAnnotationDrivenBinder.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 classTargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler.UnboundAn 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.booleanisBound()Indicates if this handler was explicitly bound.
-
-
-
Method Detail
-
isBound
boolean isBound()
Indicates if this handler was explicitly bound.- Returns:
trueif 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.
-
-