Status: New
Owner: ----
New issue 770 by [email protected]: Child injector binding override
http://code.google.com/p/google-guice/issues/detail?id=770
Hi,
I have authored two little Arquillian extensions that are based on Google
Guice:
http://planet.jboss.org/post/arquillian_google_guice_extension_1_0_0_alpha2_released.
Lately we had discussion, that it would be a nice feature to have
possibility to override the bindings with in those Arquilian tests:
(https://github.com/Netflix/karyon/pull/46#issuecomment-22710564). Although
in at least of the extensions, I do not have any control of the Guice
Injector lifecycle. It’s being created outside of the Arquillian lifecycle
scope and I am not be able to use the Modules.override functionality. The
only way to modify the bindings, would be to allow to override them at
runtime, by creating a new child injector with the desired bindings. So
this is what I would like to propose and contribute a simple implementation.
I wasn’t able to find any guidelines into the code contribution to Google
Guice, so I simply attached the patch with the code changes. I’m also aware
that this functionality may need some more excensive testing.
I am looking forward for your replay,
Regards,
Jakub Narloch
Attachments:
override.patch 17.8 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.