-
1. Re: TypeConverter interface
davsclaus Apr 21, 2011 8:40 AM (in response to mfatafta2)Its much easier to use use a regular bean and add @Converter annotation to the class and the method(s) you want to be type converters.
See more here
http://camel.apache.org/type-converter.html
If you have the Camel in Action book, then its also discussed in chapter 3.
-
2. Re: TypeConverter interface
mfatafta2 Apr 21, 2011 12:44 PM (in response to davsclaus)Thanks for the comment.
I am using the @Converter annotation and that seems to work fine.
I am just trying to understand how the TypeConverter interface can be used.
By the way, I already have you book way when it was first released.
So, the question still unanswered.
Thanks again.
-
3. Re: TypeConverter interface
davsclaus Apr 22, 2011 5:23 AM (in response to mfatafta2)End users is encouraged to use the @Converter and beans.
The TypeConverter interface is more for internal usages etc.
Camel will pick the Exchange method if its available, if not it will pick the one without the Exchange.