public class ScriptService extends Object implements IScriptService
TRACE_SCRIPT_SERVICE| Modifier and Type | Method and Description |
|---|---|
Map<String,ModuleCategoryDefinition> |
getAvailableModuleCategories()
Get a map of available module categories.
|
Map<String,ModuleDefinition> |
getAvailableModules()
Get a map of available modules.
|
Map<String,ScriptType> |
getAvailableScriptTypes()
Get a map of available script tpye.
|
static ICodeFactory |
getCodeFactory(IScriptEngine engine)
Get the default
ICodeFactory for a given script engine. |
static ICodeParser |
getCodeParser(IScriptEngine engine)
Get the default
ICodeParser for a given script engine. |
EngineDescription |
getEngine(String scriptType)
Get default engine for a given script type.
|
EngineDescription |
getEngineByID(String engineID)
Get a dedicated engine description.
|
Collection<EngineDescription> |
getEngines()
Get available engine descriptions.
|
List<EngineDescription> |
getEngines(String scriptType)
Get available engine descriptions for a given script type.
|
static ScriptService |
getInstance() |
Collection<IScriptEngineLaunchExtension> |
getLaunchExtensions(String engineID)
Get Launch extensions for a dedicated script engine.
|
ModuleDefinition |
getModuleDefinition(String moduleId)
Get the definition of the module with given ID.
|
ScriptType |
getScriptType(String location)
Get the script type for a given resource location.
|
static IScriptService |
getService() |
public static IScriptService getService()
public static ScriptService getInstance()
public EngineDescription getEngineByID(String engineID)
IScriptServicegetEngineByID in interface IScriptServiceengineID - engine identifiernullpublic Map<String,ModuleDefinition> getAvailableModules()
IScriptServicegetAvailableModules in interface IScriptServicepublic Collection<EngineDescription> getEngines()
IScriptServicegetEngines in interface IScriptServicepublic List<EngineDescription> getEngines(String scriptType)
IScriptServicegetEngines in interface IScriptServicescriptType - type of scriptpublic Collection<IScriptEngineLaunchExtension> getLaunchExtensions(String engineID)
IScriptServicegetLaunchExtensions in interface IScriptServiceengineID - engine identifierpublic Map<String,ScriptType> getAvailableScriptTypes()
IScriptServicegetAvailableScriptTypes in interface IScriptServicepublic ScriptType getScriptType(String location)
IScriptServicegetScriptType in interface IScriptServicelocation - resource locationnullpublic EngineDescription getEngine(String scriptType)
IScriptServicegetEngine in interface IScriptServicescriptType - type of scriptnullpublic Map<String,ModuleCategoryDefinition> getAvailableModuleCategories()
IScriptServicegetAvailableModuleCategories in interface IScriptServicepublic ModuleDefinition getModuleDefinition(String moduleId)
IScriptServicegetModuleDefinition in interface IScriptServicemoduleId - id to look forpublic static ICodeFactory getCodeFactory(IScriptEngine engine)
ICodeFactory for a given script engine.engine - script engine to look upnullpublic static ICodeParser getCodeParser(IScriptEngine engine)
ICodeParser for a given script engine.engine - script engine to look upnull