Package telemeta :: Module core :: Class ComponentManager
[hide private]
[frames] | no frames]

Class ComponentManager

source code

object --+
         |
        ComponentManager

The component manager keeps a pool of active components.

Instance Methods [hide private]
 
__init__(self)
Initialize the component manager.
source code
 
__contains__(self, cls)
Return wether the given class is in the list of active components.
source code
 
__getitem__(self, cls)
Activate the component instance for the given class, or return the existing the instance if the component has already been activated.
source code
 
component_activated(self, component)
Can be overridden by sub-classes so that special initialization for components can be provided.
source code
 
is_component_enabled(self, cls)
Can be overridden by sub-classes to veto the activation of a component.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialize the component manager.

Overrides: object.__init__

is_component_enabled(self, cls)

source code 

Can be overridden by sub-classes to veto the activation of a component.

If this method returns False, the component with the given class will not be available.