Class ScriptEnginePool
java.lang.Object
se.datadosen.jalbum.ScriptEnginePool
Pool of ScriptEngines, providing lazy loading and sharing of ScriptContext
(variables)
- Since:
- 12.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclass -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(ScriptLanguage language) Get scripting engine by languagestatic ObjectgetVar(String name, ScriptEngine se) Fix for broken ScriptEngine.get implementation in BeanShell Variables that are redeclared within functions aren't synchronized with the Bindings object of ScriptEngine However, they are picked up by a NameSpace variable stored within the Bindings, so get it from there instead
-
Field Details
-
profiler
-
-
Constructor Details
-
ScriptEnginePool
public ScriptEnginePool() -
ScriptEnginePool
-
-
Method Details
-
getScriptEngineManager
-
get
-
getVar
Fix for broken ScriptEngine.get implementation in BeanShell Variables that are redeclared within functions aren't synchronized with the Bindings object of ScriptEngine However, they are picked up by a NameSpace variable stored within the Bindings, so get it from there instead- Parameters:
name-- Returns:
- Variable value (unwrapped) or null if not declared
- Since:
- 12.3
-