InjectorX constructor
Implementation
InjectorX(this.injectNeedles) {
for (var needle in injectNeedles) {
var _key = InjectorXBind.getKey(needle.getType().toString());
if (needle.getMock() != null) {
_refs[_key] = needle.getMock();
} else {
var obj = InjectorXBind.getByType(
needle.getType(),
newInstance: needle.isNewInstance(),
scoppedNewInstance: needle.isScopedNewInstance(),
);
_refs[_key] = obj;
}
}
}