Status: New
Owner: ----
New issue 714 by timefre...@gmail.com: Parent injector is injected when
using childinjector
http://code.google.com/p/google-guice/issues/detail?id=714
When creating a childinjector, the parentinjector is injected into the
class instead of the childinjector.
Injector parent = Guice.createInjector();
Injector child = parent.createChildInjector();
Dao dao1 = parent.getInstance(Dao.class);
Dao dao2 = child.getInstance(Dao.class);
public static class Dao
{
@Inject
public Injector injector;
}
When calling the following code, the behaviour is correct.
Injector injector1 = parent.getInstance(Injector.class);
Injector injector2 = child.getInstance(Injector.class);
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com.
To unsubscribe from this group, send email to
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.