Hi,

What's the difference between createChildInjector and privateModule? When to
use one or the other?

Here is my use case :

I am building a Web framework based on Guice and in my model I have a
 WebApplication that can contains one or more WebModules. Each WebModule has
its own WebModuleConfig (Guice Module) which is defined by the user (i.e.
Web App developer) and bind the WebModule with the appropriate
properties/beans. Today, I first create the injector for the WebApplication
(from WebApplicationConfig), and then I loop through each WebModuleConfig
and do:

Injector webModuleInjector = webApplicationInjector.createChildInjector(new
MyModule1Config());
WebModule webModule = webModuleInjector.get(WebModule.class)
...


That's works pretty well, I just want to make sure I am not missing anything

-- 
Jeremy Chone
+1 415 699 9912
www.jeremychone.com

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

Reply via email to