patterns-discussion AT lists.siebelschool.illinois.edu
Subject: General talk about software patterns
List archive
- From: Holger Mügge <muegge AT iai.uni-bonn.de>
- To: patterns-discussion AT cs.uiuc.edu
- Subject: [patterns-discussion] Question - Builder - getResult()
- Date: Wed, 09 Nov 2005 14:46:09 +0100
- List-archive: <http://lists.cs.uiuc.edu/pipermail/patterns-discussion>
- List-id: General talk about software patterns <patterns-discussion.cs.uiuc.edu>
Hi,
in the builder pattern typically the client directly fetches the built
product from the concrete builder calling the getResult() method (cf.
the seqence diagram I attached).
I wonder whether it would be better to let the director do this and
return the product in its contruction method. I see two advantages: 1.
the client does not have to know the concrete builder, 2. no
synchronization is needed in case the client and the director work in
parallel. Do I overlook something?
Thanks for advices,
Holger
--
Holger Muegge
University of Bonn, Institute of Computer Science III
Roemerstrasse 164, D-53117 Bonn, Germany
Phone/Fax: +49-228-73-6528 / -4382
- [patterns-discussion] Question - Builder - getResult(), Holger Mügge, 11/09/2005
- RE: [patterns-discussion] Question - Builder - getResult(), Jesús Alonso, 11/09/2005
- Re: [patterns-discussion] Question - Builder - getResult(), Carl Asman, 11/09/2005
Archive powered by MHonArc 2.6.16.