open class StandardScriptEvaluator : ScriptEvaluator, BeanClassLoaderAware
javax.script (JSR-223) based implementation of Spring's ScriptEvaluator strategy interface.
Author
Juergen Hoeller
Author
Costin Leau
Since
4.0
See Also
ScriptEngine#eval(String)
StandardScriptEvaluator()
Construct a new StandardScriptEvaluator(classLoader: ClassLoader)
Construct a new StandardScriptEvaluator(scriptEngineManager: ScriptEngineManager)
Construct a new |
open fun evaluate(script: ScriptSource): Anyopen fun evaluate(script: ScriptSource, argumentBindings: MutableMap<String, Any>): Any |
|
open fun setBeanClassLoader(classLoader: ClassLoader): Unit |
|
open fun setEngineName(engineName: String): Unit
Set the name of the script engine for evaluating the scripts (e.g. "Groovy"), as exposed by the JSR-223 script engine factory. |
|
open fun setGlobalBindings(globalBindings: MutableMap<String, Any>): Unit
Set the globally scoped bindings on the underlying script engine manager, shared by all scripts, as an alternative to script argument bindings. |
|
open fun setLanguage(language: String): Unit
Set the name of the language meant for evaluating the scripts (e.g. "Groovy"). This is effectively an alias for |