[jira] Created: (CAMEL-844) Bean language to support invoking beans not in registry

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-844) Bean language to support invoking beans not in registry

JIRA jira@apache.org
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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-844) Bean language to support invoking beans not in registry

JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45132#action_45132 ]

Claus Ibsen commented on CAMEL-844:
-----------------------------------

Also the BeanProcessors debug logging isn't useful:

 DEBUG BeanProcessor                  - >>>> invoking method for: Exchange[Message: org.apache.camel.example.reportincident.InputReportIncident@1f78ef1]

It doesn't output what method or pojo or whatever it invokes.

> 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-844) Bean language to support invoking beans not in registry

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45133#action_45133 ]

Claus Ibsen commented on CAMEL-844:
-----------------------------------

Commited code changes. Need to update wiki

> 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Work started: (CAMEL-844) Bean language to support invoking beans not in registry

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-844 started by Claus Ibsen.

> 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.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-844) Bean language to support invoking beans not in registry

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ 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.