Sameer Charles created SLING-3266:
-------------------------------------
Summary: RhinoJavaScriptEngine should Implement
javax.script.Compilable
Key: SLING-3266
URL: https://issues.apache.org/jira/browse/SLING-3266
Project: Sling
Issue Type: Improvement
Components: Scripting
Affects Versions: Scripting JavaScript 2.0.12
Reporter: Sameer Charles
Priority: Minor
AFAIK, Rhino javascript engine bundled with java 5 implement
javax.script.Compilable. It would be good if the sling RhinoJavascriptEngine
would implement compilable and provide a javax.script.CompiledScript extension.
Currently if you want to compile JS, you are forced to use Rhino directly.
In addition, it would also be nice to have a support for any Compilable engine.
ie. if the engine implement Compilable, sling should compile and keep the
CompiledScript in repository for subsequent evaluation.
--
This message was sent by Atlassian JIRA
(v6.1#6144)