Class 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 Detail

      • SHACLScriptEngineManager

        public SHACLScriptEngineManager()