You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2010/03/14 06:17:45 UTC

[jira] Resolved: (CAMEL-2547) Bean parameter binding annotation for attachments

     [ https://issues.apache.org/activemq/browse/CAMEL-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-2547.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Future)
                   2.3.0

Applied the patch with thanks to Kev,  and I also added the missing pice and added more check on the attachments.

> Bean parameter binding annotation for attachments
> -------------------------------------------------
>
>                 Key: CAMEL-2547
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2547
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.1.0, 2.2.0
>         Environment: all
>            Reporter: Kev Jackson
>            Assignee: Willem Jiang
>             Fix For: 2.3.0
>
>         Attachments: attachments.patch
>
>
> Currently, the following annotations[1] can be used to decouple POJOs from camel specific Datatypes:
> @Body
> @Header
> @Headers
> @OutHeaders
> @Property
> @Properties
> @Handler 
> For handling mail messages with attachments, it makes sense to have an annotation @Attachments which would allow the following method signature to be used in a POJO:
> public void process(@Attachments Map<String, DataHandler> attachments) throws Exception
> http://camel.apache.org/parameter-binding-annotations.html

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.