This is the most flexible of the Converter SPI interfaces, but also the most complex. It is flexible in that a GenericConverter may support converting between multiple source/target type pairs (see {@link #getConvertibleTypes()}. In addition, GenericConverter implementations have access to source/target {@link TypeDescriptor field context} during the type conversion process.This allows for resolving source and target field metadata such as annotations and generics information, which can be used influence the conversion logic.
This interface should generally not be used when the simpler {@link Converter} or{@link ConverterFactory} interfaces are sufficient.
Implementations may additionally implement {@link ConditionalConverter}. @author Keith Donald @author Juergen Hoeller @since 3.0 @see TypeDescriptor @see Converter @see ConverterFactory @see ConditionalConverter
|
|