You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (Jira)" <ji...@apache.org> on 2023/09/22 07:43:00 UTC
[jira] [Resolved] (JEXL-406) allow override Engine.createTemplateInterpreter ?
[ https://issues.apache.org/jira/browse/JEXL-406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Biestro resolved JEXL-406.
--------------------------------
Resolution: Fixed
This issue - and the fix - pertain to *internal* APIs; these are under a +use at your own maintenance cost+ policy and are thus not maintained like public APIs; compatibility between versions are *not* guaranteed.
Commit [f97dd2|https://github.com/apache/commons-jexl/commit/f97dd2f8f969bf8072ce099f34ad7381e10e9c55]
> allow override Engine.createTemplateInterpreter ?
> -------------------------------------------------
>
> Key: JEXL-406
> URL: https://issues.apache.org/jira/browse/JEXL-406
> Project: Commons JEXL
> Issue Type: Improvement
> Affects Versions: 3.3
> Reporter: Xu Pengcheng
> Assignee: Henri Biestro
> Priority: Major
> Fix For: 3.3.1
>
> Attachments: image-2023-09-22-08-57-22-860.png
>
>
> 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
> {code:java}
> /**
> * Creates a template interpreter.
> * @param args the template interpreter arguments
> */
> protected Interpreter createTemplateInterpreter(final TemplateInterpreter.Arguments args) {
> return new TemplateInterpreter(args);
> }{code}
> 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!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)