T - A typepublic class ParameterAnnotationBinder<T> extends AbstractAnnotatedArgumentBinder<QueryValue,T,HttpRequest<?>> implements AnnotatedRequestArgumentBinder<QueryValue,T>
AnnotatedArgumentBinder implementation that uses the QueryValue
to trigger binding from an HTTP request parameter.ArgumentBinder.BindingResult<T>| Constructor and Description |
|---|
ParameterAnnotationBinder(ConversionService<?> conversionService) |
| Modifier and Type | Method and Description |
|---|---|
ArgumentBinder.BindingResult<T> |
bind(ArgumentConversionContext<T> context,
HttpRequest<?> source)
Bind the given argument from the given source.
|
Class<QueryValue> |
getAnnotationType() |
doBind, doBind, doConvert, doConvert, doResolve, getFallbackFormatclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic ParameterAnnotationBinder(ConversionService<?> conversionService)
conversionService - The conversion servicepublic Class<QueryValue> getAnnotationType()
getAnnotationType in interface AnnotatedArgumentBinder<QueryValue,T,HttpRequest<?>>public ArgumentBinder.BindingResult<T> bind(ArgumentConversionContext<T> context, HttpRequest<?> source)
ArgumentBinderbind in interface ArgumentBinder<T,HttpRequest<?>>context - The ArgumentConversionContextsource - The sourceOptional of the value. If no binding was possible Optional.empty()