AbstractFactory Class
Abstract Factory
Constructor
AbstractFactory
(
-
factories
Parameters:
-
factoriesObjectHash of factories to store in the registry.
Methods
(
Class
-
[type=Default] -
[initOpts]
Get a factory from the registry.
Parameters:
-
[type=Default]String optionalName of factory you want to return; defaults to Default factory.
-
[initOpts]Object optionalParams to pass to the factory if being instantiated with new, eg new Factory (initOps).
Returns:
Class:
The factory requested from the registry.
