Package aldrin :: Module extman :: Class ExtensionManager
[show private | hide private]
[frames | no frames]

Type ExtensionManager

   object --+        
            |        
    Interface --+    
                |    
IExtensionManager --+
                    |
                   ExtensionManager


UI extension manager. Enumerates extensions, creates extension hosts and returns services.
Method Summary
  __init__(self)
Compares implemented methods and warns on discrepancies in argument count, argument names or default values.
  get_service(self, uri)
returns an object providing the service requested by the uri or raises an UnknownServiceException object.
  realize_extensions(self, parent)
Instantiates and realizes all enabled extensions.
  register_service(self, uri, instance, iface)
Registers a service for access by extensions.
    Inherited from Interface
  create_protected_proxy(self, ifaces)
Returns a protected proxy object that only exports methods defined in interfaces.
  get_interfaces(self)
Returns all supported interfaces.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self)
(Constructor)

Compares implemented methods and warns on discrepancies in argument count, argument names or default values.
Overrides:
aldrin.interface.Interface.__init__ (inherited documentation)

get_service(self, uri)

returns an object providing the service requested by the uri or raises an UnknownServiceException object.
Parameters:
uri - The uri of the service requested.
           (type=str)
Overrides:
aldrin.interface.IExtensionManager.get_service

realize_extensions(self, parent)

Instantiates and realizes all enabled extensions.
Parameters:
parent - Parent window.
           (type=wx.Window)

register_service(self, uri, instance, iface=None)

Registers a service for access by extensions.

Instead of the real instance, a proxy object will be saved which exposes only interface methods.
Parameters:
uri - uri by which the object can be retrieved.
           (type=str)
instance - The object to provide on request. The object must implement at least one interface.
           (type=any)
iface - Interface which exposes the methods required or None for all.
           (type=class)

Generated by Epydoc 2.1 on Sun Feb 4 18:01:15 2007 http://epydoc.sf.net