RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebDataModuleFactory Class

TWebDataModuleFactory is the factory class for WebSnap data modules.

Pascal
TWebDataModuleFactory = class(TBaseWebModuleFactory);
C++
class TWebDataModuleFactory : public TBaseWebModuleFactory;

WebFact

All WebSnap modules are registered with the WebSnap application using a factory object. (In Delphi, the factory object is typically created in the initialization section of the module source file; in C++, it is added in a #pragma startup.)The factory is responsible for creating the module and also contains flags that specify how the module should be managed by the WebSnap application. TWebDataModuleFactory includes caching flags and creation flags. Caching flags determine whether the module should be cached for future request, or destroyed after each request and created for each new request. Creation flags determine whether the module should be automatically created for every request or created on demand. 

The WebSnap application may register multiple Web data module classes. Each class is registered with an instance of TWebDataModuleFactory. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!