camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-5516) @Consume and @Produce annotations - Allow to refer to property on bean with the endpoint to use
Date Fri, 17 Aug 2012 13:48:38 GMT

     [ 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

        

Mime
View raw message