Hi all,
In the meantime, Paddy Hannon has created an issue [1] and provided a
patch. First I want to thank Paddy for this patch.
So here are the changes:
- The SlingScriptEngine interfaces is removed without exposed
replacement
- The SlingScript is reduced to the max: It provides the resource of
the
script source and a method to evaluate the script.
- ScriptBindings is new and is used to prepare the global variables
to
evaluate the script.
The idea behind this is, that the implementation of the
SlingScriptResolver will return an instance of the SlingScript
interface, which internally keeps knowsledge of the Java Scripting
Engine used to actually evaluate the script. But this is an
implementation detail not exposed in the API.
Unless there is some opposition, I will apply this patch sometime next
week.
Regards
Felix
[1] https://issues.apache.org/jira/browse/SLING-110