Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37897
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Victor Porton <porton@narod.ru> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Guice vs plain singleton |
| Date | Wed, 20 Dec 2017 18:19:59 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 15 |
| Message-ID | <p1e2jv$1jmk$1@gioia.aioe.org> (permalink) |
| NNTP-Posting-Host | D3/YnGGc1x0ohCom0dypDQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | KNode/4.14.10 |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | csiph.com comp.lang.java.programmer:37897 |
Show key headers only | View raw
What should I prefer for creating a singleton object with "heavy" (requiring much CPU time or like this) constructor: - Guice @Singleton injector or - plain hand-made singleton like static Type instance; ... if(instance==null) ... ? -- Victor Porton - http://portonvictor.org
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Guice vs plain singleton Victor Porton <porton@narod.ru> - 2017-12-20 18:19 +0200
Re: Guice vs plain singleton Patrick Roemer <sangamon@netcologne.de> - 2017-12-20 17:53 +0100
Re: Guice vs plain singleton Daniele Futtorovic <da.futt.news@laposte.net> - 2017-12-21 13:59 +0100
Re: Guice vs plain singleton lewbloch@gmail.com - 2017-12-21 11:36 -0800
Re: Guice vs plain singleton Arne Vajhøj <arne@vajhoej.dk> - 2017-12-22 20:11 -0500
Re: Guice vs plain singleton Sebastian <nowhere@nirvana.org> - 2017-12-23 16:15 +0100
Re: Guice vs plain singleton lewbloch@gmail.com - 2017-12-23 09:54 -0800
Re: Guice vs plain singleton Arne Vajhøj <arne@vajhoej.dk> - 2017-12-23 19:27 -0500
csiph-web