Class JuelScriptEngine
- java.lang.Object
-
- javax.script.AbstractScriptEngine
-
- org.camunda.bpm.engine.impl.scripting.engine.JuelScriptEngine
-
- All Implemented Interfaces:
javax.script.ScriptEngine
public class JuelScriptEngine extends javax.script.AbstractScriptEngine
ScriptEngine that used JUEL for script evaluation and compilation (JSR-223). Uses EL 1.1 if available, to resolve expressions. Otherwise it reverts to EL 1.0, usingExpressionFactoryResolver
.- Author:
- Frederik Heremans
-
-
Constructor Summary
Constructors Constructor Description JuelScriptEngine()
JuelScriptEngine(javax.script.ScriptEngineFactory scriptEngineFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.script.Bindings
createBindings()
java.lang.Object
eval(java.io.Reader reader, javax.script.ScriptContext scriptContext)
java.lang.Object
eval(java.lang.String script, javax.script.ScriptContext scriptContext)
javax.script.ScriptEngineFactory
getFactory()
static void
importFunctions(javax.script.ScriptContext ctx, java.lang.String namespace, java.lang.Object obj)
-
-
-
Method Detail
-
eval
public java.lang.Object eval(java.lang.String script, javax.script.ScriptContext scriptContext) throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
-
eval
public java.lang.Object eval(java.io.Reader reader, javax.script.ScriptContext scriptContext) throws javax.script.ScriptException
- Throws:
javax.script.ScriptException
-
getFactory
public javax.script.ScriptEngineFactory getFactory()
-
createBindings
public javax.script.Bindings createBindings()
-
importFunctions
public static void importFunctions(javax.script.ScriptContext ctx, java.lang.String namespace, java.lang.Object obj)
-
-