Hi all,

Is there a way to override bindings of modules in a child injector?

I need to create child injectors in runtime to instantiate specific classes of 
a framework. The child injector contains a module with the bindings required to 
instantiate the requested class. It is a similar approach employed in the 
assited injection extension.

When the parent injector already contains a binding for a class, say Foo, Guice 
throws the following exception:

com.google.inject.CreationException: Guice creation errors:

1) A binding to Foo was already configured at 
MyModule.configure(MyTest.java:251).
  at Bar.class(Bar.java:32)

1 error

Is there a way to work around this problem?

Cheers,

Henrique

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