bind(IContainer.class).to(ContainerImpl.class); // Not works!
but need:
bind(IContainer.class).to(ContainerImpl.this); // Not works!
Thanks!
Thanks for replay, Thomas.Child object can contain subchilds objects too. And I want the parent container reference can be provided to subchilds via injection too.
--To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/aFpWQ6K8DuAJ.
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
Sry, NOT WORKS for Providers
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-guice/-/j4ZGzu5KfIAJ.