Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 82577 invoked from network); 21 Oct 2008 16:45:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2008 16:45:13 -0000 Received: (qmail 99252 invoked by uid 500); 21 Oct 2008 16:45:15 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 99177 invoked by uid 500); 21 Oct 2008 16:45:15 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 99166 invoked by uid 99); 21 Oct 2008 16:45:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 09:45:15 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 16:44:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 94828234C228 for ; Tue, 21 Oct 2008 09:44:52 -0700 (PDT) Message-ID: <1153919580.1224607492606.JavaMail.jira@brutus> Date: Tue, 21 Oct 2008 09:44:52 -0700 (PDT) From: "Seb Auvray (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-990) TypeConverter support with @Converter meta-annotation and not only @Converter In-Reply-To: <1199427666.1224156954219.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46636#action_46636 ] Seb Auvray commented on CAMEL-990: ---------------------------------- James, can you give more details on how your solution would work exactly ? > TypeConverter support with @Converter meta-annotation and not only @Converter > ----------------------------------------------------------------------------- > > Key: CAMEL-990 > URL: https://issues.apache.org/activemq/browse/CAMEL-990 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 1.4.0 > Reporter: Seb Auvray > Fix For: 1.5.0, 2.0.0, Future > > Attachments: typeconverter-meta-annotation-support.patch > > Original Estimate: 4 hours > Remaining Estimate: 4 hours > > Today TypeConverter detection is based on org.apache.camel.@Converter annotation. > Allow user to override this by using meta-annotation. This can be useful to hide camel dependencies, when extending the framework. > ie, this can be done: > package some.package.of.mine; > @Retention(RetentionPolicy.RUNTIME) > @Target({ElementType.TYPE, ElementType.METHOD }) > @org.apache.camel.Converter > public @interface OwnConverterAnnotation { > } > import some.package.of.mine.OwnConverterAnnotation; > @OwnConverterAnnotation > public class FileToXXXConverter { > @OwnConverterAnnotation > public static XXX toWorkflowEntry(File file) throws IOException { > return new XXX(); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.