You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Roberto Coral Azambuja (JIRA)" <ji...@apache.org> on 2016/03/21 20:36:25 UTC
[jira] [Commented] (CAMEL-6163) camel-bindy - Enable add custom
data type converter.
[ 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)