Package trac :: Module core :: Class ExtensionPoint

Class ExtensionPoint

source code

object --+    
         |    
  property --+
             |
            ExtensionPoint

Marker class for extension points in components.
Instance Methods
property attribute

__init__(self, interface)
Create the extension point.
source code
 
extensions(self, component)
Return a list of components that declare to implement the extension point interface.
source code
 
__repr__(self)
Return a textual representation of the extension point.
source code

Inherited from property: __delete__, __get__, __getattribute__, __new__, __set__, deleter, getter, setter

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

Properties

Inherited from property: fdel, fget, fset

Inherited from object: __class__

Method Details

__init__(self, interface)
(Constructor)

source code 
Create the extension point.
Parameters:
  • interface - the Interface subclass that defines the protocol for the extension point
Returns:
property attribute

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Return a textual representation of the extension point.
Overrides: object.__repr__