On Wednesday, June 20, 2012 7:34:52 AM UTC-5, glenviewjeff wrote: 

> I'm wondering if I could start with a simple injector that configures just 
> the modules necessary to start up the main screen of the application, and 
> then perform the remaining configuration on a background thread.  To do 
> this, I wouldn't want to repeat the work done in the first createInjector, 
> and ideally would do something like injector.addModules(...), which of 
> course does not exist.  
>
> Is there a way to do this?
>
>
Injector.createChildInjector() 
<http://google-guice.googlecode.com/git/javadoc/com/google/inject/Injector.html#createChildInjector%28java.lang.Iterable%3C?%20extends%20com.google.inject.Module%3E%29>was
 
exactly what I was looking for.  I had been implementing this manually.   
Apparently, I had been relying too heavily on the Guice website 
documentation without reading through the Javadocs.  :(  


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

Reply via email to