public class ScriptService extends Object implements IScriptService, org.osgi.framework.BundleListener
TRACE_SCRIPT_SERVICE
Modifier and Type | Method and Description |
---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
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)
IScriptService
getEngineByID
in interface IScriptService
engineID
- engine identifiernull
public Map<String,ModuleDefinition> getAvailableModules()
IScriptService
getAvailableModules
in interface IScriptService
public Collection<EngineDescription> getEngines()
IScriptService
getEngines
in interface IScriptService
public List<EngineDescription> getEngines(String scriptType)
IScriptService
getEngines
in interface IScriptService
scriptType
- type of scriptpublic Collection<IScriptEngineLaunchExtension> getLaunchExtensions(String engineID)
IScriptService
getLaunchExtensions
in interface IScriptService
engineID
- engine identifierpublic Map<String,ScriptType> getAvailableScriptTypes()
IScriptService
getAvailableScriptTypes
in interface IScriptService
public ScriptType getScriptType(String location)
IScriptService
getScriptType
in interface IScriptService
location
- resource locationnull
public EngineDescription getEngine(String scriptType)
IScriptService
getEngine
in interface IScriptService
scriptType
- type of scriptnull
public Map<String,ModuleCategoryDefinition> getAvailableModuleCategories()
IScriptService
getAvailableModuleCategories
in interface IScriptService
public ModuleDefinition getModuleDefinition(String moduleId)
IScriptService
getModuleDefinition
in interface IScriptService
moduleId
- id to look forpublic static ICodeFactory getCodeFactory(IScriptEngine engine)
ICodeFactory
for a given script engine.engine
- script engine to look upnull
public static ICodeParser getCodeParser(IScriptEngine engine)
ICodeParser
for a given script engine.engine
- script engine to look upnull
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener