17
votes
Vote UpVote

Virtual method interception

Entropy Overload – Delphi XE has a new type in Rtti.pas called TVirtualMethodInterceptor. It was originally designed for use in DataSnap authentication scenarios (though I don't think it's currently being used there), but of course, making it only work for that would have been quite a limitation. What does it do? Essentially, it creates a derived metaclass dynamically at runtime that overrides every virtual method in the ancestor, by creating a new virtual method table and populating it with stubs that intercepts calls and arguments. When the metaclass reference for any instance of the "ancestor" is replaced ...
Favorite? Off-Topic? Barry Kelly @ 2010-09-06 21:26

Statistics

Visits: 961
Votes: 17
Favorites: 3
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Charles Ardour
Chris Rolliston
Daniele Teti
jamiei
JC Chu
Jeroen Pluimers
Jørn E. Angeltveit
knight_killer
LachlanG
Lars Fosdal
Mohammed Nasman
Paweł Głowacki
Primoz Gabrijelcic
Rodrigo
Stefan Glienke
TOndrej
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

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