public interface ConverterRegistry
Modifier and Type | Method and Description |
---|---|
void |
addConverter(Class<?> sourceType,
Class<?> targetType,
Converter<?,?> converter)
Add a plain converter to this registry.
|
void |
addConverter(Converter<?,?> converter)
Add a plain converter to this registry.
|
void |
addConverter(GenericConverter converter)
Add a generic converter to this registry.
|
void |
addConverterFactory(ConverterFactory<?,?> converterFactory)
Add a ranged converter factory to this registry.
|
void |
removeConvertible(Class<?> sourceType,
Class<?> targetType)
Remove any converters from sourceType to targetType.
|
void addConverter(Converter<?,?> converter)
IllegalArgumentException
- if the parameterized types could not be resolvedvoid addConverter(Class<?> sourceType, Class<?> targetType, Converter<?,?> converter)
void addConverter(GenericConverter converter)
void addConverterFactory(ConverterFactory<?,?> converterFactory)
IllegalArgumentException
- if the parameterized types could not be resolved.