protected static class FieldValue.Binder.Delegate extends TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
FieldValue.Binder
.TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>
BEAN_PROPERTY
DEFAULTS
Modifier | Constructor and Description |
---|---|
protected |
Delegate() |
Modifier and Type | Method and Description |
---|---|
protected MethodDelegationBinder.ParameterBinding<?> |
bind(FieldDescription fieldDescription,
AnnotationDescription.Loadable<FieldValue> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner)
Creates a parameter binding for the given target parameter.
|
protected TypeDescription |
declaringType(AnnotationDescription.Loadable<FieldValue> annotation)
Extracts the declaring type from an annotation.
|
protected String |
fieldName(AnnotationDescription.Loadable<FieldValue> annotation)
Extracts the field name from an annotation.
|
Class<FieldValue> |
getHandledType()
The annotation type that is handled by this parameter binder.
|
bind
public Class<FieldValue> getHandledType()
Annotation.annotationType()
handled by this parameter binder.protected String fieldName(AnnotationDescription.Loadable<FieldValue> annotation)
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
fieldName
in class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
annotation
- The annotation from which to extract the field name.protected TypeDescription declaringType(AnnotationDescription.Loadable<FieldValue> annotation)
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
declaringType
in class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
annotation
- The annotation from which to extract the declaring type.protected MethodDelegationBinder.ParameterBinding<?> bind(FieldDescription fieldDescription, AnnotationDescription.Loadable<FieldValue> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner)
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding
bind
in class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<FieldValue>
fieldDescription
- The field for which this binder binds a value.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 the source
method.implementationTarget
- The target of the current implementation that is subject to this binding.assigner
- An assigner that can be used for applying the binding.Copyright © 2014–2020. All rights reserved.