AbstractThe type of products created by the registered factories.
Initializes a new factory Director with an empty factory cluster.
The type of products created by the registered factories.
ReadonlyclusterMap containing factory constructor associations keyed by material type name.
Orchestrates the creation of a product. Looks up the appropriate factory class based on the input material type, instantiates it with the material, and builds the product.
The material input to determine which factory to run.
The constructed product of type TProduct.
Abstract base class for orchestrating multiple factories based on material types.
Keeps a registry (cluster) mapping material type strings to their respective factory constructors, allowing dynamic product instantiation based on material input.
Example
Example demonstrating factory orchestration with Materials A/B and Product