Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-406

allow override Engine.createTemplateInterpreter ?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3
    • 3.4.0
    • None

    Description

      I defined a Interpreter for JexlEngine but found it does not work while evaluating template string, I debugged and found Interpreter of jexl is not applied for TemplateEngine by default.

      I found there is a method createTemplateInterpreter in Engine.class

      /**
      * Creates a template interpreter.
      * @param args the template interpreter arguments
      */
      protected Interpreter createTemplateInterpreter(final TemplateInterpreter.Arguments args) {
      return new TemplateInterpreter(args);
      }

      But the parameter TemplateInterpreter.Arguments is not visible outside of the package, is it possible to change the visibility so that we can override it?

       

      Thanks!

      Attachments

        1. image-2023-09-22-08-57-22-860.png
          157 kB
          Xu Pengcheng

        Activity

          People

            henrib Henri Biestro
            xupengcheng Xu Pengcheng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: