public final class RhinoUtils
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static Scriptable | 
createBaseScope(BundleContext bundleContext,
               PipeletTracker pipeletTracker,
               BlackboardFactory blackboardFactory)
Creates a Rhino base scope for SMILA script processing. 
 | 
static ModuleScriptProvider | 
createScriptProvider(java.nio.file.Path scriptDirectory)
Creates a ModuleScriptProvider that loads scripts from the given directory only. 
 | 
static void | 
printEngineInfo(Log log)
Print some information about the Rhino engine to the given log. 
 | 
static void | 
startDebugger(java.lang.String connectionString)
Creates and start the Eclipse JSDT debugger interface for Rhino. 
 | 
public static void printEngineInfo(Log log)
log - logger to use.public static void startDebugger(java.lang.String connectionString)
                          throws java.lang.Exception
connectionString - see https://wiki.eclipse.org/JSDT/Debug/Rhino/Embedding_Rhino_Debugger#The_Connection_Stringjava.lang.Exception - error starting the debugger.public static ModuleScriptProvider createScriptProvider(java.nio.file.Path scriptDirectory)
scriptDirectory - base script directory.public static Scriptable createBaseScope(BundleContext bundleContext,
                         PipeletTracker pipeletTracker,
                         BlackboardFactory blackboardFactory)
Global.PipeletBuilder as "pipelets".ServiceAccessor as "services".bundleContext - bundle context for lookup of service references.pipeletTracker - the pipelet tracker service.blackboardFactory - the blackboard factory service, needed to support pipelet invocations.