Package org.topbraid.shacl.engine
Class SHACLScriptEngineManager
- java.lang.Object
-
- org.topbraid.shacl.engine.SHACLScriptEngineManager
-
public class SHACLScriptEngineManager extends Object
A singleton that uses a ThreadLocal to manage the life cycle of a JSScriptEngine that can be shared for all JavaScript evaluated as part of a SHACL validation. This prevents cases in which new objects and their JS libraries would need to be created over and over again. It is the responsibility of the caller to make sure that, once the validation has completed, the engine is uninstalled.- Author:
- Holger Knublauch
-
-
Constructor Summary
Constructors Constructor Description SHACLScriptEngineManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbegin()voidend(boolean nested)static SHACLScriptEngineManagerget()static voidset(SHACLScriptEngineManager value)
-
-
-
Method Detail
-
get
public static SHACLScriptEngineManager get()
-
set
public static void set(SHACLScriptEngineManager value)
-
begin
public boolean begin()
-
end
public void end(boolean nested)
-
-