This looks really good! Can it work with Providers? And what about diamond dependencies (ie what happens if both A and B depend upon C)? Also, in the example given, if B and C aren't annotated, will Guice know enough to have the annotation passed down (assuming A is being eagerly initialized)?
Thanks, Noel On Sun, Oct 16, 2011 at 08:17, Tim Peierls <[email protected]> wrote: > > http://tembrel.blogspot.com/2009/11/concurrently-initialized-singletons-in.html > > > On Sun, Oct 16, 2011 at 10:04 AM, Noel <[email protected]> wrote: > >> I would like to do eager initialization of multiple singletons but the >> initialization can take on the order of minutes so I would like the >> initialization to happen on a separate thread. Is there a way to do >> this? >> >> Thanks, >> Noel >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-guice" 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?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "google-guice" 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?hl=en. > -- You received this message because you are subscribed to the Google Groups "google-guice" 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?hl=en.
