Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9653

Bean language - Add support for calling purely static methods

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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

                  // 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.");
                  }
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: