Raul Kripalani created CAMEL-6646: ------------------------------------- Summary: Support static method calls on OGNL expressions Key: CAMEL-6646 URL: https://issues.apache.org/jira/browse/CAMEL-6646 Project: Camel Issue Type: Improvement Components: camel-ognl Reporter: Raul Kripalani Assignee: Raul Kripalani
In OgnlInvokeProcessor, we currently don't support static method calls as we always require a bean instance. See this block of code in 2.10.3, starting on OgnlInvokeProcessor:247: {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} Add support for these cases, especially handy if you use the method() expression frequently. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira