RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebPageModuleFactory Class

TWebPageModuleFactory is the factory object for Web page modules in a WebSnap application.

Pascal
TWebPageModuleFactory = class(TBaseWebPageModuleFactory);
C++
class TWebPageModuleFactory : public TBaseWebPageModuleFactory;

All WebSnap modules are registered with the WebSnap application using a factory object. The factory object is responsible for creating the module and also contains flags that specify how the WebSnap application should manage the creation, destruction, and use of the Web module. TWebPageModuleFactory also contains flags that determine whether the module should be cached for future request or destroyed after each request and created for each new request.

Note: In the Delphi language, the factory object is created in the initialization section of the module source file.
Page module factories also contain information about the page such as the page name, description, and access rights. This information is available through the factory so that it can be retrieved without creating the module.  

WebSnap applications can contain multiple Web page module factories (hence multiple Web page modules), each of which creates the Web page module for a different Web page that the application can create. 

 

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