RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseWebModuleFactory.Create Constructor

Creates and initializes an instance of TBaseWebModuleFactory.

Pascal
constructor Create(AComponentClass: TComponentClass; ACreateMode: TWebModuleCreateMode; ACacheMode: TWebModuleCacheMode);
C++
__fastcall TBaseWebModuleFactory(TComponentClass AComponentClass, TWebModuleCreateMode ACreateMode, TWebModuleCacheMode ACacheMode);

Call Create to instantiate a Web module factory. Typically, Web module factory objects are created in the initialization section of the unit for the Web module. The call to the constructor is added by the Web module wizard or WebSnap application wizard when it generates the unit for the Web module. 

AComponentClass is the class of the Web module that this factory object creates. It becomes the value of the ComponentClass property. 

ACreateMode describes whether the factory should create instances of the Web module for every request message, or only when the application explicitly requests the Web module. This becomes the value of the CreateMode property. 

ACacheMode indicates whether the application can cache Web module instances for reuse with subsequent request messages. This becomes the value of the CacheMode property. 

 

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