Retax-Di
This library allows you to create and mediate an IoC container (based on inversify). It also allows the user to register services into it (usefull if you want to register component into the container at runtime).
It is used by retax-client and retax-server.
It depends on retax-core.
How does it work?
The user can optionnaly register a service using the injector
:
;; // you could create a top-level IoC container if you don't want to do the following yourself;;;; ; ; ; assertincrementer.value === 0;assertincrementer.increment === 1; // Later... ;kernelMediator.reloadkernel; // reload will autmatically reload user modules into the kernel ; assertdecrementer.value === 0;assertdecrementer.increment === -1;
FAQ
I don't understand how this library is built
Check builder and builder-ts-library
Typescript support
This project is shipped with typescript typings. If you are using typescript@^1.6, you don't have to do anything, it will detect the definition types automatically.
License
MIT License (MIT)