You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/08/17 15:48:38 UTC
[jira] [Resolved] (CAMEL-5516) @Consume and @Produce annotations -
Allow to refer to property on bean with the endpoint to use
[ https://issues.apache.org/jira/browse/CAMEL-5516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-5516.
--------------------------------
Resolution: Fixed
See the POJO consuming docs for examples.
> @Consume and @Produce annotations - Allow to refer to property on bean with the endpoint to use
> -----------------------------------------------------------------------------------------------
>
> Key: CAMEL-5516
> URL: https://issues.apache.org/jira/browse/CAMEL-5516
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.11.0
>
>
> Currently the @Consume and @Produce annotations on a bean requires to know the endpoint by either a ref or uri. As often you may configure the bean itself with the endpoint ref/uri, we should allow these @Consume and @Produce annotations to use a property on the bean to get the endpoint.
> Then you can configure the bean using IoC style.
> For example
> {code}
> @Consume(property = "fooEndpoint")
> public void onFoo(String input) {
> ...
> }
> ...
> // and having getter/setter to fooEndpoint
> public String getFooEndpoint() {
> return fooEndpoint;
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira