[
https://issues.apache.org/activemq/browse/CAMEL-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hadrian Zbarcea resolved CAMEL-990.
-----------------------------------
Resolution: Fixed
Patch applied with many thanks. I made a few manual modifications, because the
code changed a bit from the version the patch was created against.
> 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
> Assignee: Hadrian Zbarcea
> Fix For: 1.5.0
>
> Attachments: typeconverter-meta-annotation-support.patch
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> Today TypeConverter detection is based on [EMAIL PROTECTED] 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.