Prevent Reregistration of ScriptEngineManager on ScriptEngineFactory update
---------------------------------------------------------------------------
Key: SLING-2228
URL: https://issues.apache.org/jira/browse/SLING-2228
Project: Sling
Issue Type: Improvement
Components: Scripting
Affects Versions: Scripting Core 2.0.18
Reporter: Felix Meschberger
The ScriptEngineManager must be recreated when an existing ScriptEngineFactory
is removed or updated. This causes the ScriptEngineManager service to be
unregistered and registered again.
We should probably prevent this, maybe along these lines:
* Register the ScriptEngineManager as a service during the whole lifetime of
the Scripting Core
* The registered ScriptEngineManager is a proxy to the actual
ScriptEngineManager which gets ScriptEngineFactory registered
* On ScriptEngineFactory update, the proxied ScriptEngineManager is just
replaced
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira