[ 
https://issues.apache.org/jira/browse/CAMEL-6163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15204953#comment-15204953
 ] 

Roberto Coral Azambuja commented on CAMEL-6163:
-----------------------------------------------

I have this same need and I am thinking about implement it. I can create a new 
annotation called Converter . This annotation would have only one parameter 
with class type. When this parameter was setted the conversion automatically 
shall be made ​​by the conversion class setted and will ignore the DataField 
annotation (or will raise an exception if both annotations setted at same 
field). What do you thinking about that?

Ex. Converter.java:
public @interface Converter {
    Class<? extends Format<?>> value();
}

> camel-bindy - Enable add custom data type converter.
> ----------------------------------------------------
>
>                 Key: CAMEL-6163
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6163
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-bindy
>    Affects Versions: 2.10.4
>            Reporter: Gardella Juan Pablo
>
> It is useful add custom converter to camel-bindy, for example a new parameter 
> on Datafield annotation "converter=<someclass>". The converter receive an 
> string and return a the object. 
> If we can add custom converter, we can map to any data type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to