Lazy Singleton

97 views
Skip to first unread message

Sandro Munda

unread,
Nov 25, 2011, 10:16:28 AM11/25/11
to google...@googlegroups.com
Hello everybody !

I have the same suggestion of Sam Berlin in the following post :

http://groups.google.com/group/google-guice/browse_thread/thread/e34e475609c2cec4

The thread was written in 2009. The issue stills open here :
http://code.google.com/p/google-guice/issues/detail?id=357

Anybody has some news about this feature ? Or maybe a workarround ?

Thanks.

Sandro Munda
<munda....@gmail.com>

Sam Berlin

unread,
Nov 28, 2011, 9:06:11 AM11/28/11
to google...@googlegroups.com
The links in the initial thread are dead now.  Here's new links to the code from that thread:

  @LazySingleton: https://github.com/wiregit/wirecode/blob/master/components/common/src/main/java/org/limewire/inject/LazySingleton.java
  MoreScopes: https://github.com/wiregit/wirecode/blob/master/components/common/src/main/java/org/limewire/inject/MoreScopes.java
  LazyBinder: https://github.com/wiregit/wirecode/blob/master/components/common/src/main/java/org/limewire/inject/LazyBinder.java

Unless there's significant new demand for this, it's likely to remain not in core Guice, since it's easy enough to add yourself with a few additional classes.

sam


Sandro Munda
<munda....@gmail.com>

--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.


Thomas Broyer

unread,
Nov 28, 2011, 9:53:15 AM11/28/11
to google...@googlegroups.com
There's demand for "lazy init of servlets", which is related to lazy-singleton: http://code.google.com/p/google-guice/issues/detail?id=505
Reply all
Reply to author
Forward
0 new messages