public class ScriptService extends java.lang.Object implements IScriptService, org.osgi.framework.BundleListener
TRACE_SCRIPT_SERVICE| Modifier and Type | Method and Description |
|---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
java.util.Map<java.lang.String,ModuleCategoryDefinition> |
getAvailableModuleCategories()
Get a map of available module categories.
|
java.util.Map<java.lang.String,ModuleDefinition> |
getAvailableModules()
Get a map of available modules.
|
java.util.Map<java.lang.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(java.lang.String scriptType)
Get default engine for a given script type.
|
EngineDescription |
getEngineByID(java.lang.String engineID)
Get a dedicated engine description.
|
java.util.Collection<EngineDescription> |
getEngines()
Get available engine descriptions.
|
java.util.List<EngineDescription> |
getEngines(java.lang.String scriptType)
Get available engine descriptions for a given script type.
|
static ScriptService |
getInstance() |
java.util.Collection<IScriptEngineLaunchExtension> |
getLaunchExtensions(java.lang.String engineID)
Get Launch extensions for a dedicated script engine.
|
ModuleDefinition |
getModuleDefinition(java.lang.String moduleId)
Get the definition of the module with given ID.
|
ScriptType |
getScriptType(java.lang.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(java.lang.String engineID)
IScriptServicegetEngineByID in interface IScriptServiceengineID - engine identifiernullpublic java.util.Map<java.lang.String,ModuleDefinition> getAvailableModules()
IScriptServicegetAvailableModules in interface IScriptServicepublic java.util.Collection<EngineDescription> getEngines()
IScriptServicegetEngines in interface IScriptServicepublic java.util.List<EngineDescription> getEngines(java.lang.String scriptType)
IScriptServicegetEngines in interface IScriptServicescriptType - type of scriptpublic java.util.Collection<IScriptEngineLaunchExtension> getLaunchExtensions(java.lang.String engineID)
IScriptServicegetLaunchExtensions in interface IScriptServiceengineID - engine identifierpublic java.util.Map<java.lang.String,ScriptType> getAvailableScriptTypes()
IScriptServicegetAvailableScriptTypes in interface IScriptServicepublic ScriptType getScriptType(java.lang.String location)
IScriptServicegetScriptType in interface IScriptServicelocation - resource locationnullpublic EngineDescription getEngine(java.lang.String scriptType)
IScriptServicegetEngine in interface IScriptServicescriptType - type of scriptnullpublic java.util.Map<java.lang.String,ModuleCategoryDefinition> getAvailableModuleCategories()
IScriptServicegetAvailableModuleCategories in interface IScriptServicepublic ModuleDefinition getModuleDefinition(java.lang.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 upnullpublic void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListener