[
https://issues.apache.org/jira/browse/JEXL-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Henri Biestro closed JEXL-260.
------------------------------
> 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
(v8.3.4#803005)