Package trac :: Module core :: Class ComponentMeta

Type ComponentMeta

source code

object --+    
         |    
      type --+
             |
            ComponentMeta

Meta class for components.

Takes care of component and extension point registration.

Instance Methods
 
__call__(cls, *args, **kwargs)
Return an existing instance of the component if it has already been activated, otherwise create a new instance.
source code

Inherited from type: __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __instancecheck__, __le__, __lt__, __ne__, __repr__, __setattr__, __subclasscheck__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Methods
 
deregister(cls, component)
Remove a component from the registry.
source code
Static Methods
a new object with type S, a subtype of T
__new__(mcs, name, bases, d)
Create the component class.
source code
Properties

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details

__new__(mcs, name, bases, d)
Static Method

source code 
Create the component class.
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__call__(cls, *args, **kwargs)
(Call operator)

source code 
Return an existing instance of the component if it has already been activated, otherwise create a new instance.
Overrides: type.__call__