Part of elisa.core.plugin_registry View In Hierarchy
Known subclasses: elisa.core.tests.test_plugin_registry.PluginRegistryMock
Line # | Kind | Name | Docs |
---|---|---|---|
81 | Method | __init__ | Undocumented |
183 | Method | load_plugins | Load plugins from self.plugin_dirs. |
295 | Method | enable_plugin | Enable a plugin. |
337 | Method | disable_plugin | Disable a plugin. |
374 | Method | get_plugins | Get the list of available plugins. |
386 | Method | get_enabled_plugins | Get the list of enabled plugins. |
399 | Method | get_plugin_names | Get the names of the installed plugins. |
410 | Method | create_component | Create a component given its path. |
91 | Method | _deactivate_dist | Undocumented |
152 | Method | _fix_uninstalled_plugin | Undocumented |
180 | Method | _add_gstreamer_path | Undocumented |
447 | Method | _call_hook | Undocumented |
Parameters | disabled_plugins | a list of plugins that should be disabled
(type: list of str
) |
Notes | This function runs without returning to the reactor for as long as it takes. There is no point in making it return before it is done as the plugin environment needs to be set up before any other part of elisa can run correctly. | |
By default, all the available plugins are enabled. | ||
Unknown Field: attention | This function should be called as early as possible at startup, before using any plugin. |
Parameters | plugin_name | the name of the plugin to enable
(type: str
) |
Parameters | plugin_name | the name of the plugin to disable
(type: str
) |
Get the list of available plugins.
This call returns (plugin_name, status) tuples, where status isTrue
if the plugin is enabled, False
otherwise.
Returns | a generator yielding (plugin_name, status) tuples
(type: generator
) |
Returns | generator yielding plugin names
(type: generator
) |
Parameters | path | plugin path, defaults to 'elisa.plugins'
(type: str
) |
Returns | a generator object yielding plugin names
(type: generator
) |
Create a component given its path.
The path is in module:Component syntax, eg elisa.plugins.my_plugin:MyComponent.Parameters | path | the component path
(type: str
) |
config | the configuration to set for the component
(type: elisa.core.config.Config
) | |
Returns | an instance of the component identified by path
(type: elisa.core.component.Component
or a subclass
) |