THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
@FallbackConverter public static <T> T convertTo(Class<T> type, Exchange exchange, Object value, TypeConverterRegistry registry) |
Or you can use the non generic signature.
Code Block |
---|
@FallbackConverter
public static Object convertTo(Class type, Exchange exchange, Object value, TypeConverterRegistry registry)
|
And the method name can be anything (convertTo
is not required as a name), so it can be named convertMySpecialTypes
if you like.
The Exchange
parameter is optional, just as its with the regular @Converter
methods.
...