[fpc-devel] Inversion of control for TCustomHTTPModule and descendants

Sven Barth pascaldragon at googlemail.com
Tue Mar 6 17:02:59 CET 2012


Hello together!

I'm currently playing around with fcl-web a bit.

As I'd like to utilize inversion of control (e.g. passing things like 
database connections through the constructor [as one possible 
implementation of this pattern]) for my modules I'd like to ask whether 
it would be an idea for a feature request (maybe even with patch) to add 
an "OnCreateModule" event to TWebHandler which is called inside 
TWebHandler.HandleRequest before the module is created using CreateNew 
or Create?

Regards,
Sven



More information about the fpc-devel mailing list