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

_______________________________________________
patterns-discussion mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/patterns-discussion

Reply via email to