You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Kev Jackson (JIRA)" <ji...@apache.org> on 2010/03/13 14:29:44 UTC
[jira] Created: (CAMEL-2547) Bean parameter binding annotation for
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.2.0, 2.1.0
Environment: all
Reporter: Kev Jackson
Fix For: Future
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.
[jira] Resolved: (CAMEL-2547) Bean parameter binding annotation for
attachments
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (CAMEL-2547) Bean parameter binding annotation for
attachments
Posted by "Kev Jackson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kev Jackson updated CAMEL-2547:
-------------------------------
Attachment: attachments.patch
This is pretty close to fixing this issue
> 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
> Fix For: Future
>
> 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.
[jira] Assigned: (CAMEL-2547) Bean parameter binding annotation for
attachments
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-2547:
-----------------------------------
Assignee: Willem Jiang
> 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: Future
>
> 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.