[
https://issues.apache.org/activemq/browse/CAMEL-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-844.
-------------------------------
Resolution: Fixed
Added wiki documentation to Bean Language
> Bean language to support invoking beans not in registry
> -------------------------------------------------------
>
> Key: CAMEL-844
> URL: https://issues.apache.org/activemq/browse/CAMEL-844
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.5.0
>
>
> The bean language is fantastic, but using the java DSL routing without the
> spring beans is a bit painful as you need to register the beans in the
> registry before you can use it.
> Sometimes you just want it to invoke a method on pojo class so we need to
> support this style also:
> {code:java}
> bean(MyPojoClass.class, "helloworld")
> {code}
> Where MyPojoClass will be created on the fly and invoking the *helloworld*
> method.
> Also if the class is already created we can use a reference to it:
> {code:java}
> bean(myInstance, "helloworld")
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.