a dependency injection framework.
Dependency Injection is getting to be so commonplace -- and so powerful and useful -- that it should become part of the Delphi RTL.
The Spring4D Framework will suffice here. No need to add it to the RTL or build a new one.
Stefan Glienke commented
I disagree that it should be part of the RTL. In most languages that are commonly using a DI container it is part of their runtime but third party libraries.
I suggest looking at Spring4D which contains a very advanced DI container that can easily compete with other DI container such as Unity, Castle or Spring to just name a few.
+3. We do have some nice already available free ones. Maybe we just need to "GetIt!" wrap them?
Daniele Teti commented
Chunfu Tan commented
I totally agree with this...
I (unfortunately) have to do a lot of C# programming (I say unfortunately because I'd love to find a job in Phoenix where I can just do Delphi - sadly my Delphi has been relegated to a hobby but...hope springs eternal) and I can't live without Ninject as part of my database development. Matter of fact, I went so far as to write a T4 template that creates all my entities, repositories and data context using DI - I don't even think about it anymore - I just use it and presume it'll be there.
So, YES, I want a DI framework in Delphi!!!!!