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

Bean language - Add support for calling purely static methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17.0
    • camel-core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: