3
votes
Dependency Injection in Delphi: a simple example
Yanniel's notes
– I want to give a fairly simple Delphi example that will expose the dependency injection pattern. No framework, no third-party library will be needed here: just plain Delphi code.I won’t dig into the different forms of dependency injection. I will explain the idea of the pattern as simple as possible.Instead of giving you bunch of definitions, I will present you with some code. The need to inject a dependency will come naturally. You’ll see:type IDependency = interface ['{618030A2-DB17-4532-81D0-D5AA6F73DC66}'] procedure GetType; end; TDependencyA = ...
Statistics
|
Visits by Source |
User Actions |



