Class e.c.m.Manager(log.Loggable):

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

A manager handles a list of components.

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 Variablescomponentscomponents currently registered in the manager (type: list of elisa.core.component.Component )
Class Variablesentry_pointthe 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.
def __init__(self):
Undocumented
def _clean_component(self, result, component):
Undocumented
def clean(self):
Undocumented
def _load_components(self, component_names):
Asynchronously load and register a list of components.
Parameterscomponent_namesthe list of the names of components to load (type: list of str )
def _unload_components(self, component_names):
Asynchronously unregister and unload a list of components.
Parameterscomponent_namesthe list of the names of components to unload (type: list of str )
def register_component(self, component):
Register a new component.

When trying to register a component twice, an AlreadyRegistered failure will be returned.

Parameterscomponentthe component to register (type: elisa.core.component.Component )
Returnsa deferred fired when the component is registered (type: elisa.core.utils.defer.Deferred )
def unregister_component(self, component):
Unregister a component.

When trying to unregister a component that is not registered, a CannotUnregister failure will be returned.

Parameterscomponentthe component to unregister (type: elisa.core.component.Component )
Returnsa deferred fired when the component is unregistered (type: elisa.core.utils.defer.Deferred )
def plugin_status_changed_cb(self, plugin, status):
Callback meant to be invoked (by the plugin registry) when the status of a plugin has changed.
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.