vojtajina / dart-di Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently it silently instantiates it, however as Miško says, "bad things happen". We need API on the mirror to know if the class is an abstract class.
Class 'Injector' has no instance method 'reflectClass'.
NoSuchMethodError : method not found: 'reflectClass'
Receiver: Instance of 'Injector'
Arguments: [Type: class 'BlockTypeFactory']'
Chrome 28.0 (Mac) LOG: '#0 Object.noSuchMethod (dart:core-patch:1904:25)
#1 Injector.get (http://localhost:8765/base/packages/di/injector.dart:88:45)
This code
new Injector().get(List);
Results in this very cryptic error.
Caught Class 'AsyncError' has no instance getter 'reflectee'. NoSuchMethodError : method not found: 'reflectee' Receiver: Instance of 'AsyncError' Arguments: [] #0 Object.noSuchMethod (dart:core-patch:1884:25)
Probably should say something more reasonable as in don't know how to instantiate List or something like that.
var injetor = new Injector();
injector.get(Injector) == injector
^^^^^^
fails!
// in constructor X
injector.get(Y)
if Y -> X, but it's defined on different injector, the error is "resolving X -> X" which is misleading.
It's because each injector has its own "resolving" list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.