dev@jersey.java.net

Re: [Jersey] GuiceComponentProviderFactory seems to eagerly support resources that are not explicitly bound in the given Injector.

From: charlie.knudsen <charlie.knudsen_at_gmail.com>
Date: Thu, 24 Sep 2009 11:29:56 -0500

On Thu, Sep 24, 2009 at 3:31 AM, Jae Lee <jlee119_at_gmail.com> wrote:
> I would probably have that singleton object bound in the parent Injector
> that's shared by all the child injectors... so then you can keep the
> singleton aspect of the object.
> If I have to give additional annotation for those two different
> implementations of the interface to be able to control the binding in Guice,
> I think it's bit too much information leaked out, that are only concern of
> the Guice.

That makes sense. I could see doing what you are doing in the future
if a project got large. I was just not aware of how Hierarchical
Injectors worked in Guice or that they even existed. Learn something
new every day :)

Charlie