Class AbstractAnnotatedArgumentBinder<A extends java.lang.annotation.Annotation,T,S>
- java.lang.Object
-
- io.micronaut.core.bind.annotation.AbstractAnnotatedArgumentBinder<A,T,S>
-
- Type Parameters:
A- The annotation typeT- The argument typeS- The binding source type
- All Implemented Interfaces:
AnnotatedArgumentBinder<A,T,S>,ArgumentBinder<T,S>
public abstract class AbstractAnnotatedArgumentBinder<A extends java.lang.annotation.Annotation,T,S> extends java.lang.Object implements AnnotatedArgumentBinder<A,T,S>
An abstractAnnotatedArgumentBinderimplementation.- Since:
- 1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAnnotatedArgumentBinder(ConversionService<?> conversionService)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ArgumentBinder.BindingResult<T>doBind(ArgumentConversionContext<T> context, ConvertibleValues<?> values, java.lang.String annotationValue)Do binding.protected ArgumentBinder.BindingResult<T>doBind(ArgumentConversionContext<T> context, ConvertibleValues<?> values, java.lang.String annotationValue, ArgumentBinder.BindingResult<T> defaultResult)Do binding.protected ArgumentBinder.BindingResult<T>doConvert(java.lang.Object value, ArgumentConversionContext<T> context)Convert the value and return a binding result.protected ArgumentBinder.BindingResult<T>doConvert(java.lang.Object value, ArgumentConversionContext<T> context, ArgumentBinder.BindingResult<T> defaultResult)Convert the value and return a binding result.protected java.lang.ObjectdoResolve(ArgumentConversionContext<T> context, ConvertibleValues<?> values, java.lang.String annotationValue)Do resolve.protected java.lang.StringgetFallbackFormat(Argument argument)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.micronaut.core.bind.annotation.AnnotatedArgumentBinder
getAnnotationType
-
Methods inherited from interface io.micronaut.core.bind.ArgumentBinder
bind
-
-
-
-
Constructor Detail
-
AbstractAnnotatedArgumentBinder
protected AbstractAnnotatedArgumentBinder(ConversionService<?> conversionService)
Constructor.- Parameters:
conversionService- conversionService
-
-
Method Detail
-
doBind
protected ArgumentBinder.BindingResult<T> doBind(ArgumentConversionContext<T> context, ConvertibleValues<?> values, java.lang.String annotationValue)
Do binding.- Parameters:
context- contextvalues- valuesannotationValue- annotationValue- Returns:
- result
-
doBind
protected ArgumentBinder.BindingResult<T> doBind(ArgumentConversionContext<T> context, ConvertibleValues<?> values, java.lang.String annotationValue, ArgumentBinder.BindingResult<T> defaultResult)
Do binding.- Parameters:
context- contextvalues- valuesannotationValue- annotationValuedefaultResult- The default binding result if the value is null- Returns:
- result
-
doResolve
@Nullable protected java.lang.Object doResolve(ArgumentConversionContext<T> context, ConvertibleValues<?> values, java.lang.String annotationValue)
Do resolve.- Parameters:
context- contextvalues- valuesannotationValue- annotationValue- Returns:
- result
-
getFallbackFormat
protected java.lang.String getFallbackFormat(Argument argument)
- Parameters:
argument- The argument- Returns:
- The fallback format
-
doConvert
protected ArgumentBinder.BindingResult<T> doConvert(java.lang.Object value, ArgumentConversionContext<T> context)
Convert the value and return a binding result.- Parameters:
value- The value to convertcontext- The conversion context- Returns:
- The binding result
-
doConvert
protected ArgumentBinder.BindingResult<T> doConvert(java.lang.Object value, ArgumentConversionContext<T> context, ArgumentBinder.BindingResult<T> defaultResult)
Convert the value and return a binding result.- Parameters:
value- The value to convertcontext- The conversion contextdefaultResult- The binding result if the value is null- Returns:
- The binding result
-
-