Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail NNTP-Posting-Date: Sun, 14 Aug 2011 23:26:32 -0500 From: "Qu0ll" Newsgroups: comp.lang.java.programmer References: In-Reply-To: Subject: Re: Synchronization of the constructor Date: Mon, 15 Aug 2011 14:24:50 +1000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3538.513 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3538.513 Message-ID: <34adnbSkXNNkAtXTnZ2dnUVZ_umdnZ2d@westnet.com.au> Lines: 23 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 124.168.138.63 X-Trace: sv3-xwu3Fjw/VqLo/MXNI5XdF1Q4umehJc/oKRRshDu8iHhUd9RkkvIM0LdXAFy9yyGMW5h3OK0oUILaWsM!/nhpym0g1zf8NmWcMpZf9r/j2Ih5YrRWu1TgFelETnUvl2iOGrGRhGWIjwssIEz1r0xmRYe+1scH!DBqYVhTflLIArmLxRfvGnQ== X-Complaints-To: abuse@westnet.com.au X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2495 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7120 "Lew" wrote in message news:e695c538-923e-41c7-9345-659ca2e4e9ab@glegroupsg2000goo.googlegroups.com... [snip] > Point being that there are particular use cases when it's OK to use a > constructor if the advantages of a factory method are not particularly > compelling, or if the hoops to implement and > use a factory method are > too epicyclic. But Patricia's advice and insights are very sound (as they > always are from her); factory methods bring great advantages for a lot of > scenarios. I > certainly plan to increase my appreciation for them > because of her post. In general is it better to have static factory methods on the class that is to be instantiated or to have a separate factory class? And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]