Author: limpbizkit
Date: Tue Dec 30 17:57:54 2008
New Revision: 755
Modified:
trunk/src/com/google/inject/Scopes.java
Log:
Using a private monitor rather than a public one for building singletons.
It's still global...
Modified: trunk/src/com/google/inject/Scopes.java
==============================================================================
--- trunk/src/com/google/inject/Scopes.java (original)
+++ trunk/src/com/google/inject/Scopes.java Tue Dec 30 17:57:54 2008
@@ -49,7 +49,7 @@
* Maybe one of these days we will identify independent graphs
of
* objects and offer to load them in parallel.
*/
- synchronized (Injector.class) {
+ synchronized (InjectorImpl.class) {
if (instance == null) {
instance = creator.get();
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---