public class ScriptEvaluator extends Object
ScriptEngines. This class is thread-safe.| Constructor and Description |
|---|
ScriptEvaluator(javax.script.ScriptEngine engine)
Creates a new script executor.
|
public ScriptEvaluator(javax.script.ScriptEngine engine)
engine - The engine to be wrapped.public Object evaluate(String script, Object obj, String objectAlias) throws javax.script.ScriptException
script - The script to be executed.obj - The object to be put into the context.objectAlias - The name under which the given object shall be put into the context.javax.script.ScriptException - In case of any errors during script execution.Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved