Martin,

Am I correct in understanding that you want an instance of S per leg
and an instance of S per toe?

Here's one way to do it:

The leg is the parent injector. It does not have a binding to S
because that would be inherited by the children.

Each child (toe) has a binding to S that's a singleton.

If you need a singleton S in the parent (leg), you should bind it in a
PrivateModule along with anything that needs the S instance. Expose
the other types but not S. This will ensure the S from the parent
doesn't interfere with the children.

Thanks,
Bob

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