Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for "contextual injections" #15
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.
Initial API thoughts: