Skip to Content.
Sympa Menu

patterns-discussion - [patterns-discussion] Question - Builder - getResult()

patterns-discussion AT lists.siebelschool.illinois.edu

Subject: General talk about software patterns

List archive

[patterns-discussion] Question - Builder - getResult()


Chronological Thread 
  • 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



GIF image




Archive powered by MHonArc 2.6.16.

Top of Page