Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Child injectors are unaware of Provisions which can be satisfied by the parent injector #1123

Open
DarkholmeTenk opened this issue Aug 24, 2017 · 0 comments

Comments

@DarkholmeTenk
Copy link

DarkholmeTenk commented Aug 24, 2017

The following unit tests fail, because when you create a child injector, any provision listeners in the child modules aren't capable of listening to any provisions which can be satisfied by the parent.

This includes JIT bindings and makes it completely impossible to listen for any classes which have no-args constructors with no fields being injected.

It seems to me that a child's provision listeners should still be respected if the child injector is the one being used.

An example can be seen in the following gist:
https://gist.github.com/DarkholmeTenk/f430cf96de70b25b8fd01bc597b23abf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant