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

Add support for "contextual injections" #15

Closed
remojansen opened this issue May 7, 2015 · 2 comments
Closed

Add support for "contextual injections" #15

remojansen opened this issue May 7, 2015 · 2 comments

Comments

@remojansen
Copy link
Member

The idea is to allow developers to bind multiple implementation types (classes) to one service type (interface). A "constraint" function is used to decide whether InversifyJS should inject one implementation type (class) or another based on the context of the injection.

The context of the injection will be provided via the Reflection metadata API.
See #14

Initial API thoughts:
https://gist.github.com/remojansen/dbd57b72622ebf1129f8

@remojansen
Copy link
Member Author

Closing this issue to create a more detailed one

@johndoe2361289638163
Copy link

What is the state of this issue? Are contextual injections now fully supported?

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

No branches or pull requests

2 participants