org.ow2.bonita.pvm.internal.script
Class ScriptManager
java.lang.Object
org.ow2.bonita.pvm.internal.script.ScriptManager
public class ScriptManager
- extends java.lang.Object
- Author:
- Tom Baeyens
Method Summary |
static ScriptManager |
createDefault()
|
protected java.lang.Object |
evaluate(javax.script.ScriptEngine scriptEngine,
java.lang.String script)
|
java.lang.Object |
evaluate(java.lang.String script,
Execution execution,
java.lang.String language)
evaluates the script with the given language. |
java.lang.Object |
evaluateExpression(java.lang.String expression,
Execution execution,
java.lang.String language)
evaluates the expression with
the given language or with the defaultExpressionLanguage if the given
language is null. |
java.lang.Object |
evaluateScript(java.lang.String script,
Execution execution,
java.lang.String language)
evaluates the script with the
given language or with the defaultScriptLanguage if the given language is
null. |
static ScriptManager |
getScriptManager()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultExpressionLanguage
protected java.lang.String defaultExpressionLanguage
defaultScriptLanguage
protected java.lang.String defaultScriptLanguage
scriptEngineManager
protected javax.script.ScriptEngineManager scriptEngineManager
readContextNames
protected java.lang.String[] readContextNames
writeContextName
protected java.lang.String writeContextName
ScriptManager
public ScriptManager()
getScriptManager
public static ScriptManager getScriptManager()
createDefault
public static ScriptManager createDefault()
evaluateExpression
public java.lang.Object evaluateExpression(java.lang.String expression,
Execution execution,
java.lang.String language)
evaluates
the expression with
the given language or with the defaultExpressionLanguage if the given
language is null.
evaluateScript
public java.lang.Object evaluateScript(java.lang.String script,
Execution execution,
java.lang.String language)
evaluates
the script with the
given language or with the defaultScriptLanguage if the given language is
null.
evaluate
public java.lang.Object evaluate(java.lang.String script,
Execution execution,
java.lang.String language)
- evaluates the script with the given language. If script is null, then this
method will return null.
- Throws:
PvmException
- if language is null.
evaluate
protected java.lang.Object evaluate(javax.script.ScriptEngine scriptEngine,
java.lang.String script)
Copyright © 2009 OW2 Consortium. All Rights Reserved.