The question is detailed here.

http://stackoverflow.com/questions/18505960/giving-a-value-to-provider-in-guice/18520477

I don't know if any of the following are possible:
- Obtain the instance of ClassX within the module code, without 
partitioning the the modules into separate injectors.
- If there is a way to give a non type value as java generic param (like in 
C++ templates), which guice can differentiate.

The hard restriction is that every module must be part of a single injector 
- because the object of ClassX is required by many guys, not just the 
binding mentioned in the question.

Thanks,
Aman

-- 
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 google-guice+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to