In order to make it easier to work with scripting, we need to clean up the base class:
Remove references to Invocable. We require that we find a NashornScriptEngine (as finding another ScriptEngine is catastophic anyways). Since NashornScriptEngine is an Invocable, we don't need these extra casts.
In order to make it easier to work with scripting, we need to clean up the base class:
Invocable
. We require that we find aNashornScriptEngine
(as finding another ScriptEngine is catastophic anyways). Since NashornScriptEngine is anInvocable
, we don't need these extra casts.engine
.