Interface TargetMethodAnnotationDrivenBinder.ParameterBinder<T extends java.lang.annotation.Annotation>
-
- Type Parameters:
T- TheAnnotation.annotationType()handled by this parameter binder.
- All Known Implementing Classes:
AllArguments.Binder,Argument.Binder,Default.Binder,DefaultCall.Binder,DefaultMethod.Binder,Empty.Binder,FieldProxy.Binder,FieldValue.Binder,FieldValue.Binder.Delegate,Morph.Binder,Origin.Binder,Pipe.Binder,StubValue.Binder,Super.Binder,SuperCall.Binder,SuperMethod.Binder,TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding,TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue,TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant,This.Binder
- Enclosing class:
- TargetMethodAnnotationDrivenBinder
public static interface TargetMethodAnnotationDrivenBinder.ParameterBinder<T extends java.lang.annotation.Annotation>A parameter binder is used as a delegate for binding a parameter according to a particular annotation type found on this parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends java.lang.annotation.Annotation>A parameter binder that binds a field's value.static classTargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends java.lang.annotation.Annotation>Implements a parameter binder that binds a fixed value to a parameter with a given annotation.
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>>DEFAULTSThe default parameter binders to be used.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDelegationBinder.ParameterBinding<?>bind(AnnotationDescription.Loadable<T> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)Creates a parameter binding for the given target parameter.java.lang.Class<T>getHandledType()The annotation type that is handled by this parameter binder.
-
-
-
Field Detail
-
DEFAULTS
static final java.util.List<TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> DEFAULTS
The default parameter binders to be used.
-
-
Method Detail
-
getHandledType
java.lang.Class<T> getHandledType()
The annotation type that is handled by this parameter binder.- Returns:
- The
Annotation.annotationType()handled by this parameter binder.
-
bind
MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<T> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)
Creates a parameter binding for the given target parameter.- Parameters:
annotation- The annotation that was cause for the delegation to this argument binder.source- The intercepted source method.target- Tge target parameter that is subject to be bound to intercepting thesourcemethod.implementationTarget- The target of the current implementation that is subject to this binding.assigner- An assigner that can be used for applying the binding.typing- The typing to apply.- Returns:
- A parameter binding for the requested target method parameter.
-
-