Package elisa :: Package core :: Module service_manager :: Class ServiceManager

Class ServiceManager

source code


Manage a list of service providers.

Instance Methods
elisa.core.utils.defer.Deferred
register_component(self, component)
Register a new component.
source code
elisa.core.utils.defer.Deferred
unregister_component(self, component)
Unregister a component.
source code

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from manager.Manager
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
clean(self) source code
 
plugin_status_changed_cb(self, plugin, status)
Callback meant to be invoked (by the plugin registry) when the status of a plugin has changed.
source code
Class Variables
str entry_point = 'elisa.core.components.service_provider'
the entry point listing providers in plugins

Inherited from extern.log.log.Loggable: logCategory

Instance Variables
    Inherited from manager.Manager
list of elisa.core.component.Component components
components currently registered in the manager
Properties

Inherited from object: __class__

Method Details

register_component(self, component)

source code 

Register a new component.

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

Parameters:
  • component - the component to register
Returns: elisa.core.utils.defer.Deferred
a deferred fired when the component is registered
Overrides: manager.Manager.register_component
(inherited documentation)

unregister_component(self, component)

source code 

Unregister a component.

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

Parameters:
  • component - the component to unregister
Returns: elisa.core.utils.defer.Deferred
a deferred fired when the component is unregistered
Overrides: manager.Manager.unregister_component
(inherited documentation)