I've run into issues in the past where I did something like:

bind(Foo.class).to(FooSubinterfaceImpl.class).in(Scopes.SINGLETON);
bind(FooSubinterface.class).to(FooSubinterfaceImpl.class).in(Scopes.SINGLETON);

and gotten two instances - do any the places where DAO is injected use a 
subtype of DAO instead of DAO itself?

I don't understand what you're trying to do with having a module for tests 
and then overriding it - you're best bet is probably to strip as much 
complexity out of your setup as possible and get it down to a test case.

-Tim

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to