justinfagnani / dado

An experimental dependency injection container for Dart
BSD 3-Clause "New" or "Revised" License
9 stars 6 forks source link

Overhaul on code distribution and separation of concerns #17

Closed Dreckr closed 10 years ago

Dreckr commented 10 years ago

This CL is mostly a reorganization of what we have right now. In the process, with some little changes, I was able to add support for named parameters and function injection. Also, optional positional parameters are supported like named parameters (satisfied, if possible), I found that it is a more consistent implementation.

Current Module and Binding implementation were isolated on dado.declarative library and the abstract class Module was created, as I'm planning to also build a traditional Module implementation (maybe something like Guice's Module), since it will give Dado a broader appeal. If you are against this idea, please tell me.

I must add that there is no attempt to solve issue #16, binding declaration remains the same, with the exception of the removal of bindTo.

A code review is up at https://codereview.appspot.com/45100045/

Dreckr commented 10 years ago

Closing for now, as it is broken on Dart 1.1.1