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 · 1 comment

Comments

Projects
None yet
1 participant
@remojansen
Member

remojansen commented May 7, 2015

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 remojansen added this to the 1.0 milestone May 7, 2015

@remojansen remojansen removed the Suggestion label Sep 16, 2015

@remojansen remojansen modified the milestones: 2.0, 1.0 Sep 16, 2015

@remojansen

This comment has been minimized.

Show comment
Hide comment
@remojansen

remojansen Feb 25, 2016

Member

Closing this issue to create a more detailed one

Member

remojansen commented Feb 25, 2016

Closing this issue to create a more detailed one

@remojansen remojansen closed this Feb 25, 2016

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