I have Guice set up to create a container object, we'll call it
Container, which is comprised of several component objects which guice
also creates and injects into the container -- I have the fields
annotated w/ inject because they can be null.

I'd like those objects to contain a reference to the Container which
holds them w/o having to add a setter method on the public interface,
users of the code have no reason to be trying to set this object
themselves.

It this something I can pull off out of the box?

Alternatively, I'd like to be able to have the same object injected
into both the Container & the child objects, which itself is provided
via user-supplied data to the thing which holds the Container (also
created by Guice, using @Assisted & the FactoryModuleBuilder.

Basically the situation is that the user is providing some
configuration options and i'd like them to propagate down into the
children of the Container object without having to create factory
interfaces for everything along the way and thereby messing up the
code.

Thanks.

Mike

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