A
- The annotation typeT
- The argument typeS
- The binding source typepublic abstract class AbstractAnnotatedArgumentBinder<A extends Annotation,T,S> extends Object implements AnnotatedArgumentBinder<A,T,S>
AnnotatedArgumentBinder
implementation.ArgumentBinder.BindingResult<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractAnnotatedArgumentBinder(ConversionService<?> conversionService)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ArgumentBinder.BindingResult<T> |
doBind(ArgumentConversionContext<T> context,
ConvertibleValues<?> values,
String annotationValue)
Do binding.
|
protected ArgumentBinder.BindingResult<T> |
doBind(ArgumentConversionContext<T> context,
ConvertibleValues<?> values,
String annotationValue,
ArgumentBinder.BindingResult<T> defaultResult)
Do binding.
|
protected ArgumentBinder.BindingResult<T> |
doConvert(Object value,
ArgumentConversionContext<T> context)
Convert the value and return a binding result.
|
protected ArgumentBinder.BindingResult<T> |
doConvert(Object value,
ArgumentConversionContext<T> context,
ArgumentBinder.BindingResult<T> defaultResult)
Convert the value and return a binding result.
|
protected Object |
doResolve(ArgumentConversionContext<T> context,
ConvertibleValues<?> values,
String annotationValue)
Do resolve.
|
protected String |
getFallbackFormat(Argument argument) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotationType
bind
protected AbstractAnnotatedArgumentBinder(ConversionService<?> conversionService)
conversionService
- conversionServiceprotected ArgumentBinder.BindingResult<T> doBind(ArgumentConversionContext<T> context, ConvertibleValues<?> values, String annotationValue)
context
- contextvalues
- valuesannotationValue
- annotationValueprotected ArgumentBinder.BindingResult<T> doBind(ArgumentConversionContext<T> context, ConvertibleValues<?> values, String annotationValue, ArgumentBinder.BindingResult<T> defaultResult)
context
- contextvalues
- valuesannotationValue
- annotationValuedefaultResult
- The default binding result if the value is null@Nullable protected Object doResolve(ArgumentConversionContext<T> context, ConvertibleValues<?> values, String annotationValue)
context
- contextvalues
- valuesannotationValue
- annotationValueprotected String getFallbackFormat(Argument argument)
argument
- The argumentprotected ArgumentBinder.BindingResult<T> doConvert(Object value, ArgumentConversionContext<T> context)
value
- The value to convertcontext
- The conversion contextprotected ArgumentBinder.BindingResult<T> doConvert(Object value, ArgumentConversionContext<T> context, ArgumentBinder.BindingResult<T> defaultResult)
value
- The value to convertcontext
- The conversion contextdefaultResult
- The binding result if the value is null