[Zope3-dev] IFactory, and composite factories

Jim Fulton jim@zope.com
Sun, 01 Sep 2002 07:21:30 -0400


R. David Murray wrote:
> On Sat, 31 Aug 2002, Jim Fulton wrote:
> 

...

>>"Factory" is a pretty general term that we are using for two different
>>things.
>>
> 
> Yeah.  It's appropriate in both contexts, but I'd almost rather
> rename the content Factory somehow to create a separation.

Maybe. I'm not sure. I misspoke earlier. IFactory is really meant
for simple factory components. The objects created could be components or
other objects.  Brian Lloyd lobbied for this based on experience with COM.
I've CCed him to try to drag him into this conversation. ;)

The main purpose of IFactory is to support "createObject", so I suppose
that another term would be "creator".

Another option is to rename the factory attribute in ZCML.

Jim

-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (888) 344-4332            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org