RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractWebPageModuleFactory Class

TAbstractWebPageModuleFactory is the base class for Web module factory objects whose generated Web modules create Web pages.

Pascal
TAbstractWebPageModuleFactory = class(TAbstractWebModuleFactory);
C++
class TAbstractWebPageModuleFactory : public TAbstractWebModuleFactory;

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. The factory object is responsible for creating Web module instances. Applications can set flags for each factory object to indicate when it should create instances of its Web module and whether it can cache Web module instances for reuse with subsequent request messages. 

TAbstractWebPageModuleFactory is the base class for all Web module factory objects that generate Web page modules. In addition to holding components that perform tasks for the WebSnap application, Web page modules can generate a Web page. The Web page is described by a Web page information object, which the Web page module factory makes available as its WebPageInfo property. 

Do not create instances of TAbstractWebPageModuleFactory. Most of its methods are abstract or, in C++ terminology, pure virtual, meaning they have no implementation. Instead, create instances of a TAbstractWebPageModuleFactory descendant such as TWebPageModuleFactory or TWebAppPageModuleFactory. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!