Class Scripting
java.lang.Object
org.nuxeo.ecm.webengine.scripting.Scripting
- Author:
- Bogdan Stefanescu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
_runScript
(ScriptFile script, Map<String, Object> args) static CompiledScript
compileScript
(ScriptEngine engine, File file) getCompiledScript
(ScriptEngine engine, File file) Lazy init scripting manager to avoid loading script engines when no scripting is used.boolean
runScript
(ScriptFile script) runScript
(ScriptFile script, Map<String, Object> args)
-
Constructor Details
-
Scripting
-
-
Method Details
-
compileScript
- Throws:
ScriptException
-
getEngineManager
Lazy init scripting manager to avoid loading script engines when no scripting is used.Javax Scripting is not used by default in WebWengine, we are using directly the Groovy engine. This also fixes an annoying pb on Mac in java5 due to AppleScripting which is failing to register.
- Returns:
- the scriptMgr
-
isScript
-
runScript
- Throws:
ScriptException
-
runScript
- Throws:
ScriptException
-
_runScript
- Throws:
ScriptException
-
getCompiledScript
- Throws:
ScriptException
-