Hi, I'm struggling with injecting one instance into two different beans.
Here is my bean structure: - MasterBean - SubBean1 - SubBean2 MasterBean get both SubBean's injected, the SubBean's does not know each other. Both SubBeans get's one ContextBean instance injected. The scope of the ContextBean should be attached to the MasterBean, so when I create a new MasterBean, two new SubBean's should be created and one ContextBean which is being injected into the two SubBeans. Using a singleton is not really a solution because it limits the MasterBean to one instance. Another solution would be an additional Guice-Scope, but this a little bit overkill I think... :-( Any ideas how to solve this? Regards, Oliver -- 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.
