public final class JythonScriptEngineService extends Object implements ScriptEngineService
ScriptEngineService
implementation.ScriptEngineService.ScriptEngine, ScriptEngineService.WorkerRunnable
RESOURCE_NAME
Constructor and Description |
---|
JythonScriptEngineService()
Constructor used when DCR is unavailable.
|
JythonScriptEngineService(GrinderProperties properties,
DCRContext dcrContext,
ScriptLocation scriptLocation)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<Instrumenter> |
createInstrumenters()
Initialises script engine instrumentation.
|
ScriptEngineService.ScriptEngine |
createScriptEngine(ScriptLocation script)
If the script engine service can handle the given script, it should return
a suitable implementation.
|
public JythonScriptEngineService(GrinderProperties properties, DCRContext dcrContext, ScriptLocation scriptLocation)
properties
- Properties.dcrContext
- DCR context.scriptLocation
- Script location.public JythonScriptEngineService()
public List<Instrumenter> createInstrumenters() throws EngineException
Each script engine can provide instrumenters, irrespective of the engine used to execute the script. The instrumenters provided by each engine are consulted according to service registration order in the META-INF file.
createInstrumenters
in interface ScriptEngineService
EngineException
- If a problem occurred creating instrumenters.public ScriptEngineService.ScriptEngine createScriptEngine(ScriptLocation script) throws EngineException
Implementations typically will execute the script and perform any process level initialisation.
createScriptEngine
in interface ScriptEngineService
script
- The script.null
.EngineException
- If an implementation could not be created.Copyright © 2000-2014. All Rights Reserved.