Vote UpVote

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 = ...
Favorite? Off-Topic? Yanniel @ 2011-11-03 12:23


Visits: 1146
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Mohammed Nasman
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)