Part of elisa.core.manager View In Hierarchy
Known subclasses: elisa.core.input_manager.InputManager, elisa.core.metadata_manager.MetadataManager, elisa.core.resource_manager.ResourceManager, elisa.core.service_manager.ServiceManager
Components can be registered and unregistered from the manager.
Optionnally the manager can implement start/stop methods if it needs to handle any kind of loop (example: media sources scanning, input events polling, etc). start/stop methods are called by the parent object (application).
Instance Variables | components | components currently registered in the manager
(type: list of elisa.core.component.Component
) |
Class Variables | entry_point | the entry point listing providers in plugins
(type: str
) |
Line # | Kind | Name | Docs |
---|---|---|---|
65 | Method | __init__ | Undocumented |
73 | Method | clean | Undocumented |
151 | Method | register_component | Register a new component. |
172 | Method | unregister_component | Unregister a component. |
194 | Method | plugin_status_changed_cb | Callback meant to be invoked (by the plugin registry) when the status |
70 | Method | _clean_component | Undocumented |
77 | Method | _load_components | Asynchronously load and register a list of components. |
117 | Method | _unload_components | Asynchronously unregister and unload a list of components. |
Parameters | component_names | the list of the names of components to load
(type: list of str
) |
Parameters | component_names | the list of the names of components to unload
(type: list of str
) |
When trying to register a component twice, an AlreadyRegistered failure will be returned.
Parameters | component | the component to register
(type: elisa.core.component.Component
) |
Returns | a deferred fired when the component is registered
(type: elisa.core.utils.defer.Deferred
) |
When trying to unregister a component that is not registered, a CannotUnregister failure will be returned.
Parameters | component | the component to unregister
(type: elisa.core.component.Component
) |
Returns | a deferred fired when the component is unregistered
(type: elisa.core.utils.defer.Deferred
) |