Article View: borland.public.jbuilder.java.language
Article #7628Re: Singleton Pattern: Use All Static Methods or Private Constructor?
From: Tor Iver Wilhelmsen
Date: Thu, 31 May 2001 08:56
Date: Thu, 31 May 2001 08:56
9 lines
1298 bytes
1298 bytes
"Jack Frosch" <jackfrosch[NO SPAM]@mail.com> writes: > Would you please elaborate a bit on your response? I'm not sure what you > mean by, "it cannot expose implementation of an interface." (I fear lost > the antecedent to "that approach") Because the interface methods need to be instance methods, which static methods aren't. You would need to expose a delegate for them, and then you're using the other approach anyway.
Technical Details
Message-ID:
<uk82xew2a.fsf@sds.no>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b128359$1_1@dnews> <ud78segdn.fsf@sds.no> <3b1537a2$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-31 02:15:08 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> <ud78segdn.fsf@sds.no> <3b1537a2$1_1@dnews> From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Date: 31 May 2001 10:56:13 +0200 Message-ID: <uk82xew2a.fsf@sds.no> Lines: 9 X-Newsreader: Gnus v5.5/Emacs 20.3 NNTP-Posting-Host: 139.105.4.252 X-Trace: dnews 991299373 139.105.4.252 (31 May 2001 01:56:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews