commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JEXL-260) Automatically inject JexlContext in constructor call when possible
Date Sun, 20 May 2018 19:15:00 GMT

     [ https://issues.apache.org/jira/browse/JEXL-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Biestro resolved JEXL-260.
--------------------------------
    Resolution: Fixed

Added logic in interpreter & test.

src/main/java/org/apache/commons/jexl3/internal/Interpreter.java 
RELEASE-NOTES.txt 
src/test/java/org/apache/commons/jexl3/ClassCreatorTest.java 
src/site/xdoc/changes.xml

revision   : cd40852bf7063bb5aee438129015e085b51d68fe


> Automatically inject JexlContext in constructor call when possible
> ------------------------------------------------------------------
>
>                 Key: JEXL-260
>                 URL: https://issues.apache.org/jira/browse/JEXL-260
>             Project: Commons JEXL
>          Issue Type: Improvement
>    Affects Versions: 3.1
>            Reporter: Henri Biestro
>            Assignee: Henri Biestro
>            Priority: Minor
>             Fix For: 3.2
>
>
> WHAT:
> With namespaces, when they are functors, JEXL automatically injects the JexlContext as
the first argument of the constructor. The improvement is that the 'new(...)' / create-instance
feature allows the same flexibility, automatically injecting the current JexlContext as 1st
argument of constructors.
> Although it is already possible to retrieve the (thread local) context, the constructor
signature makes the intent (of using a JEXL context) more obvious.
> HOW:
> Just apply more or less the same logic in use for function/method call resolution. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message