kiwi.component module documentationkiwi
| Class | Interface | Undocumented |
| Class | Attribute | Undocumented |
| Function | implements | Undocumented |
| Class | AlreadyImplementedError | Called when a utility already exists. |
| Function | provide_utility | Set the utility for the named interface. If the utility is already set, an {AlreadyImplementedError} is raised. |
| Function | get_utility | Get the utility for the named interface. If the utility is not available (has not been set) a {NotImplementedError} is raised unless default is set. |
| Function | remove_utility | Remove the utility provided for an interface If the utility is not available (has not been set) {NotImplementedError} is raised. |
| Class | _UtilityHandler | Undocumented |
Set the utility for the named interface. If the utility is already
set, an {AlreadyImplementedError} is raised.
@param iface: interface to set the utility for.
@param utility: utility providing the interface.
Get the utility for the named interface. If the utility is not
available (has not been set) a {NotImplementedError} is raised unless
default is set.
@param iface: an interface
@param default: optional, if set return if a utility is not found
@returns: the utility