RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComClassManager.ForEachFactory Method

Processes iterative actions on factories associated with a given server.

Pascal
procedure ForEachFactory(ComServer: TComServerObject; FactoryProc: TFactoryProc);
C++
__fastcall ForEachFactory(TComServerObject ComServer, TFactoryProc FactoryProc);

ForEachFactory is used to process an action, specified by the FactoryProc parameter, on all class factories in the factory list that are owned by the ComServer specified by the ComServer parameter. 

ForEachFactory is used internally by the COM server to: 

Destroy factories when the associated COM server unloads. 

Have factories register their class objects in the system registry, when the associated COM server initializes. 

Have the factories update the system registry when necessary. 

TFactoryProc is the method-pointer type of the FactoryProc parameter of ForEachProperty. TFactoryProc defines a method that takes a class factory as a parameter. 

 

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