AnnotationBasedArgumentConverter is an abstract base class for
ArgumentConverter implementations that also need to consume an
annotation in order to perform the conversion.
ArgumentConverter, AnnotationConsumer, SimpleArgumentConverter
| Modifier and Type | Field and Description |
|---|---|
| private @Nullable A |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | accept(A annotation)
Implements java. Performs this operation on the given argument. |
| public final @Nullable Object | |
| public final @Nullable Object | |
| protected abstract @Nullable Object | Returns: the converted object; may benull but only if the target
type is a reference typethe source object to convert; may be source, Class<?> nullthe target type the source object should be converted
into; never targetType, A nullthe annotation to process; never annotation)nullConvert the supplied |
| annotation | back to summary |
|---|---|
| private @Nullable A annotation | |
| AnnotationBasedArgumentConverter | back to summary |
|---|---|
| public AnnotationBasedArgumentConverter() | |
| accept | back to summary |
|---|---|
| public final void accept(A annotation) Implements java. Doc from java. Performs this operation on the given argument.
| |
| convert | back to summary |
|---|---|
public final @Nullable Object convert(@Nullable Object source, ParameterContext context) throws ArgumentConversionException
| |
| convert | back to summary |
|---|---|
public final @Nullable Object convert(@Nullable Object source, FieldContext context) throws ArgumentConversionException
| |
| convert | back to summary |
|---|---|
| protected abstract @Nullable Object convert(@Nullable Object source, Class<?> targetType, A annotation) throws ArgumentConversionException Convert the supplied
| |