Package org.topbraid.shacl.engine
Class SHACLScriptEngineManager
java.lang.Object
org.topbraid.shacl.engine.SHACLScriptEngineManager
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanbegin()voidend(boolean nested) static SHACLScriptEngineManagerget()static voidset(SHACLScriptEngineManager value)
-
Constructor Details
-
SHACLScriptEngineManager
public SHACLScriptEngineManager()
-
-
Method Details
-
get
-
set
-
begin
public boolean begin() -
end
public void end(boolean nested)
-