Determining the Parameters of a Factory
Because we don't use explicit procedure parameters in the Populate method of the factory class, it can be useful to be able to determine what these parameters are. The read-only Parameters property returns a cParams object populated with the valid parameter names for this factory.
The Parameters property is useful when designing tools that interact with business objects-such as the business object browser that we'll look at later on-since the parameters for a factory can be determined at run time. This determination allows us to automatically instantiate factory objects.
Dim ocfEmployees As New cfEmployees Dim ocParams As New cParams Set ocfEmployees = New cfEmployees Set ocParams = ocfEmployee.Parameters ' Do stuff with ocParams.