Package p6 :: Package zcmlsupport :: Package bbb :: Module interfaces :: Class IRegistrationStack
[show private | hide private]
[frames | no frames]

Type IRegistrationStack

Interface --+
            |
           IRegistrationStack


A stack of registrations for a set of parameters

A service will have a registry containing registry stacks for specific parameters. For example, an adapter service will have a registry stack for each given used-for and provided interface.

The registry stack works like a stack: the first element is active; when it is removed, the element after it is automatically activated. An explicit None may be present (at most once) to signal that nothing is active. To deactivate an element, it is moved to the end.


Class Variable Summary
str __nonzero__ = 'The registry is true iff it has no regist...
str activate = 'Make the registration active.\n\n        The...
str active = 'Return the active registration, if any.\n\n   ...
str deactivate = "Make the registration inactive.\n\n       ...
str info = 'Return a sequence of registration information.\n...
str register = 'Register the given registration without acti...
str registered = 'Is the registration registered?\n\n       ...
str unregister = 'Unregister the given registration.\n\n    ...

Class Variable Details

__nonzero__

Type:
str
Value:
'The registry is true iff it has no registrations.'                    

activate

Type:
str
Value:
'''Make the registration active.

        The activated() method is called on the registration.  If
        another registration was previously active, its deactivated()
        method is called first.

        If the argument is None, the currently active registration if
        any is disabled and no new registration is activated.
...                                                                    

active

Type:
str
Value:
'''Return the active registration, if any.

        Otherwise, returns None.
        '''                                                            

deactivate

Type:
str
Value:
"""Make the registration inactive.

        If the registration is active, the deactivated() method is
        called on the registration.  If this reveals a registration
        that was previously active, that registration's activated()
        method is called.

        Raises a ValueError if the given registration is not registere\
...                                                                    

info

Type:
str
Value:
'''Return a sequence of registration information.

        The sequence items are mapping objects with keys:

        active -- A boolean indicating whether the registration is
                  active.

        registration -- The registration object.
...                                                                    

register

Type:
str
Value:
'''Register the given registration without activating it.

        Do nothing if the registration is already registered.
        '''                                                            

registered

Type:
str
Value:
'''Is the registration registered?

        Return a boolean indicating whether the registration has been
        registered.
        '''                                                            

unregister

Type:
str
Value:
'''Unregister the given registration.

        Do nothing if the registration is not registered.

        Implies deactivate() if the registration is active.
        '''                                                            

Generated by Epydoc 2.1 on Fri Jun 24 12:01:25 2005 http://epydoc.sf.net