Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7124
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ian <m4r35n357@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Singleton Pattern |
| Date | Mon, 15 Aug 2011 15:00:33 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 15 |
| Message-ID | <j2b8q2$6pq$1@dont-email.me> (permalink) |
| References | <3be6e6cf-fa32-4503-9457-b0a1caef8f29@w11g2000vbp.googlegroups.com> <vt-dnf5wc8CJkdrTnZ2dnUVZ_jKdnZ2d@posted.palinacquisition> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 15 Aug 2011 14:00:34 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="Zyz5IMaj1Xc0HPnJykeKmQ"; logging-data="6970"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9ZFOO9kTRvtSlUaMrTqHimH2AB+Cj0HQ=" |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 |
| In-Reply-To | <vt-dnf5wc8CJkdrTnZ2dnUVZ_jKdnZ2d@posted.palinacquisition> |
| Cancel-Lock | sha1:gfYxMnsqaQ9s4kl5BYoT5tmgIlY= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7124 |
Show key headers only | View raw
On 14/08/11 00:43, Peter Duniho wrote: > I'd never even heard of the "single-element enum type" variation of > singleton initialization. That one in particular sounds like a > completely over-engineered approach. > > Pete I wouldn't say over-engineered - it's about as verbose as a final field declaration. ISTR one of the actual advantages is safety in the presence of serialization, although Bloch mentions others . . . I'd say it's the right tool for the job of creating instance-controlled data safely. [FX: Ducks!] Ian.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Singleton Pattern "vbhavsar@gmail.com" <vbhavsar@gmail.com> - 2011-08-13 13:56 -0700
Re: Singleton Pattern markspace <-@.> - 2011-08-13 14:41 -0700
Re: Singleton Pattern Patricia Shanahan <pats@acm.org> - 2011-08-13 14:48 -0700
Re: Singleton Pattern Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-08-13 16:43 -0700
Re: Singleton Pattern Ian <m4r35n357@gmail.com> - 2011-08-15 15:00 +0100
Re: Singleton Pattern Lew <lewbloch@gmail.com> - 2011-08-15 07:56 -0700
Re: Singleton Pattern Patricia Shanahan <pats@acm.org> - 2011-08-15 22:07 -0700
Re: Singleton Pattern Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-08-16 00:09 -0700
Re: Singleton Pattern Patricia Shanahan <pats@acm.org> - 2011-08-16 06:15 -0700
Re: Singleton Pattern Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-08-16 06:57 -0700
Re: Singleton Pattern Patricia Shanahan <pats@acm.org> - 2011-08-16 09:25 -0700
Re: Singleton Pattern Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-08-16 18:10 -0700
Re: Singleton Pattern Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-08-13 20:56 -0400
Re: Singleton Pattern Lew <lewbloch@gmail.com> - 2011-08-13 21:12 -0700
Re: Singleton Pattern Rajeev <rajeev.nospam@gmail.com> - 2011-08-14 06:37 -0700
csiph-web