Updates:
Status: Invalid
Comment #4 on issue 353 by limpbizkit: Strange behavior on Inject Injector
instance in Constructor
http://code.google.com/p/google-guice/issues/detail?id=353
If you read the doc carefully for createChildInjector(), it suggests that
the binding for GUI will live in the top-
level injector:
"Just-in-time bindings created for child injectors will be created in an
ancestor injector whenever possible.
This allows for scoped instances to be shared between injectors. Use
explicit bindings to prevent bindings
from being shared with the parent injector."
The solution is to use an explicit binding for GUI. In your child injector,
add this statement:
bind(GUI.class);
http://google-guice.googlecode.com/svn/trunk/latest-
javadoc/com/google/inject/Injector.html#createChildInjector(com.google.inject.Module...)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---