On Tue, Dec 1, 2009 at 16:28, Martijn Faassen <faas...@startifact.com> wrote:
> * abstract factory not called on an object ("utility factory",
> "null-adaptation")
>    In: the requested interface
>    Process: look up factory. Call factory.
>    Out: a new instance that provides the requested interface

When would you need this? As I understand it, the only difference from
the normal utility lookup is that you don't get singletons. IMO that
breaks the concept of what a utility is, so null-adaption is a better
name for that, but that still means you adapt nothing, so it's not an
adapter either. :-)

> * abstract instance retrieval for an object ("utility associated with an
> instance", "adapting to an existing instance")
>    In: the requested interface, one or more instances.
>    Process: look up instance with input instances as "context".
>    Out: a previously registered instance that provides
> the requested interface

Hmm. Singleton adapters, in other words. I can see that as useful, sure.

Lennart Regebro: Python, Zope, Plone, Grok
+33 661 58 14 64
Zope-Dev maillist  -  Zope-Dev@zope.org
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to