🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7705

Re: Singleton Pattern: Use All Static Methods or Private Constructor?

#7705
From: Tor Iver Wilhelmsen
Date: Tue, 29 May 2001 07:58
9 lines
1150 bytes
"Jack Frosch" <jackfrosch[NO SPAM]@mail.com> writes:

> Approach #2 clearly meets the pattern description of the GoF, but I'm
> wondering if there are any uniquely-Java reasons why approach #1 might be
> preferable?

Well, that approach is closer to the Utility pattern. For instance, it
has the disadvantage that it cannot expose implementation of an
interface.
Technical Details
Message-ID: <ud78segdn.fsf@sds.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3b128359$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,604521ee4b628609
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-29 01:04:02 PST
Sender: towi@SDSA1761
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Singleton Pattern: Use All Static Methods or Private Constructor?
References: <3b128359$1_1@dnews>
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Date: 29 May 2001 09:58:12 +0200
Message-ID: <ud78segdn.fsf@sds.no>
Lines: 9
X-Newsreader: Gnus v5.5/Emacs 20.3
NNTP-Posting-Host: 139.105.4.252
X-Trace: dnews 991123090 139.105.4.252 (29 May 2001 00:58:10 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!netnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews