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] [Updated] (CAMEL-9653) Bean language - Add support for calling purely static methods
Date Sun, 28 Feb 2016 08:36:19 GMT

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

Claus Ibsen updated CAMEL-9653:
-------------------------------
    Fix Version/s: 2.17.0

> Bean language - Add support for calling purely static methods
> -------------------------------------------------------------
>
>                 Key: CAMEL-9653
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9653
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.17.0
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Bean-instance-is-null-OGNL-bean-expressions-requires-bean-instances-tp5778338.html
> In the code we say
> {code}
>             // loop and invoke each method
>             Object beanToCall = beanHolder.getBean();
>             // there must be a bean to call with, we currently does not support OGNL
expressions on using purely static methods
>             if (beanToCall == null) {
>                 throw new IllegalArgumentException("Bean instance is null. OGNL bean
expressions requires bean instances.");
>             }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message