public class ScriptEvaluator extends Object
ScriptEngines. This class is thread-safe.| Constructor and Description |
|---|
ScriptEvaluator(ScriptEngine engine)
Creates a new script executor.
|
public ScriptEvaluator(ScriptEngine engine)
engine - The engine to be wrapped.public Object evaluate(String script, Map<String,Object> bindings) throws ScriptException
script - The script to be executed.bindings - The bindings to be used.ScriptException - In case of any errors during script execution.Copyright © 2009-2015 Oracle Corporation. All Rights Reserved.