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

allow override Engine.createTemplateInterpreter ?

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment