Package se.datadosen.jalbum
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
Modifier and TypeClassDescriptionstatic class
class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(ScriptLanguage language) Get scripting engine by languagestatic Object
getVar
(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
Get scripting engine by language- Returns:
-
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
-