Henri Biestro created JEXL-260:
----------------------------------

             Summary: 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
             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)

Reply via email to