[
https://issues.apache.org/jira/browse/CAMEL-5389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-5389.
--------------------------------
Resolution: Won't Fix
> Add ProducerTemplate and ConsumerTemplate to bean parameter binding as known
> types
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-5389
> URL: https://issues.apache.org/jira/browse/CAMEL-5389
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: Future
>
>
> It would be nice if you could just define ProducerTemplate / ConsumerTemplate
> as a parameter to a bean method, and have the bean component auto map an
> instance to these, using a shared template created from camel context.
> We could even support @EndpointInject, @Produce, @Consume as well, so you can
> do
> public void handleError(@Properties Map properties,
> @EndpointInject(uri = "seda:retry") ProducerTemplate retry) {
> Currently you can map those as fields on the bean, but its not possible on
> types, such as in a method signature.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)