Vote UpVote

Extending the Spring4D DI container - lifetime managers

Delphi sorcery – Today we got the request to support TInterfacedPersistent in the DI container.As you may know TInterfacedPersistence does not do reference counting like TInterfacedObject does - or to be more precise it delegates it to its possible owner. Usually the owner will be nil so it does not do reference counting through its _AddRef and _Release method and often is used for classes that should not do reference counting if you don't want to write your own class (or use Spring.TInterfaceBase for that purpose).When working with DI your life will be much easier when using interfaces. But if the ...
Favorite? Off-Topic? noreply@blogger.com @ 2015-05-07 21:18


Visits: 830
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Jeroen Pluimers
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)