S
- The Annotation.annotationType()
handled by this parameter binder.public abstract static class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation> extends Object implements TargetMethodAnnotationDrivenBinder.ParameterBinder<S>
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>
Modifier and Type | Field and Description |
---|---|
protected static String |
BEAN_PROPERTY
Indicates that a name should be extracted from an accessor method.
|
DEFAULTS
Constructor and Description |
---|
ForFieldBinding() |
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.ParameterBinding<?> |
bind(AnnotationDescription.Loadable<S> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
protected abstract MethodDelegationBinder.ParameterBinding<?> |
bind(FieldDescription fieldDescription,
AnnotationDescription.Loadable<S> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner)
Creates a parameter binding for the given target parameter.
|
protected abstract TypeDescription |
declaringType(AnnotationDescription.Loadable<S> annotation)
Extracts the declaring type from an annotation.
|
protected abstract String |
fieldName(AnnotationDescription.Loadable<S> annotation)
Extracts the field name from an annotation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandledType
protected static final String BEAN_PROPERTY
public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)
bind
in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<S extends Annotation>
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.typing
- The typing to apply.protected abstract String fieldName(AnnotationDescription.Loadable<S> annotation)
annotation
- The annotation from which to extract the field name.protected abstract TypeDescription declaringType(AnnotationDescription.Loadable<S> annotation)
annotation
- The annotation from which to extract the declaring type.protected abstract MethodDelegationBinder.ParameterBinding<?> bind(FieldDescription fieldDescription, AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner)
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–2024. All rights reserved.