Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B645E18349 for ; Tue, 22 Mar 2016 01:55:25 +0000 (UTC) Received: (qmail 41905 invoked by uid 500); 22 Mar 2016 01:55:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 41851 invoked by uid 500); 22 Mar 2016 01:55:25 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 41839 invoked by uid 99); 22 Mar 2016 01:55:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2016 01:55:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7FA702C14F8 for ; Tue, 22 Mar 2016 01:55:25 +0000 (UTC) Date: Tue, 22 Mar 2016 01:55:25 +0000 (UTC) From: "Roberto Coral Azambuja (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CAMEL-6163) camel-bindy - Enable add custom data type converter. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-6163?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1520= 4953#comment-15204953 ]=20 Roberto Coral Azambuja edited comment on CAMEL-6163 at 3/22/16 1:55 AM: ------------------------------------------------------------------------ I need this feature too and I want to implement it. I'm thinking of creatin= g a new annotation class called Converter. This annotation will have only o= ne parameter: converter class. When this parameter is setted the conversion= automatically will be made =E2=80=8B=E2=80=8Bby the converter class setted= and the DataField annotation will be ignored (or an exception will be thro= wed if both annotations setted at same field). What do you thinking about t= hat? Ex. Converter.java: public @interface Converter { Class> value(); } was (Author: rcazambuja): I need this feature too and I want to implement it. I'm thinking of creatin= g a new annotation class called Converter. This annotation will have only o= ne parameter: converter class. When this parameter is setted the conversion= automatically will be made =E2=80=8B=E2=80=8Bby the convertee class setted= and will ignore the DataField annotation (or will raise an exception if bo= th annotations setted at same field). What do you thinking about that? Ex. Converter.java: public @interface Converter { Class> 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 param= eter on Datafield annotation "converter=3D". The converter recei= ve an string and return a the object.=20 > If we can add custom converter, we can map to any data type. -- This message was sent by Atlassian JIRA (v6.3.4#6332)