Comment #5 on issue 183 by dhanji: Scopes.SINGLETON uses a global lock
http://code.google.com/p/google-guice/issues/detail?id=183

> This also impacts single injectors. I think the best policy is to avoid  
creating threads inside Providers,
> @Provides methods and injected members.

This is an unreasonable restriction. Though you're exactly right that it  
affects single injectors too. The
problem with the original poster's code is join() inside a  
constructor--THAT's the only thing we need to void.
Starting a thread is no(t really a) problem.

Otoh we should think about changing the lock to a private monitor as agreed  
in the discussion thread linked
above.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to