[Zope3-dev] Discussion: Configuration vs. Configuration

Steve Alexander steve@cat-box.net
Wed, 23 Apr 2003 18:10:43 +0200


> Of the suggestions so far, I still like "registration" best.  What
> makes this a particularly good fit is that it suggests correctly that
> this is something *external* to the component being registered --

This was discussed at the sprint in Bristol.
The best word we came up with there was "wiring".

This kind of "configuration" is for wiring together your components.


> unlike for the first kind of configuration, the component's own state
> doesn't change, but its role in the overall system (not to be confused
> with the role in the security machinery) changes, e.g. from merely
> existing to actively participating.

Right.


> Moreover, this is accomplished
> purely by changing the data structures used for registration, external
> to the registered component.  In fact, what is registered is not so
> much the component as the role: some components can have multiple
> roles simultaneously, and there are independent registrations for each
> role.

Right.


> OTOH, for each distinct role there can be at most one *active*
> registration at any time; there may be other, inactive, registrations,
> but those have no effect except to offer the site manager alternative
> implementations for a given role.

Each of these registrations can be thought of as a wire going from a 
socket in the wall into some component you want to connect to other stuff.
Each wall socket can accept only one wire. You can connect a "device" to 
any number of different wall sockets, if the device supports that.

--
Steve Alexander