Dependency Injection
SenseJS framework provides an advanced injection framework, which features
-
Constructor parameters injection, which is exactly what your expected for a dependency injection framework
-
Method parameters injection, by the method invocation framework. It
The Method Invoking Framework brings the ability to invoke arbitrary method of a component and enhanced the ability of dependency injection that supports injection from contextually bound injectables that provided by middlewares.
It is the most powerful and elegant part of SenseJS. We'll discuss it in another article of this chapter.