@microsoft/fast-foundation > Factory
Factory interface
Used by the default Resolver to create instances of objects when needed.
Signature:export interface Factory<T extends Constructable = any>
Properties
| Property | Type | Description |
|---|---|---|
| Type | T | The concrete type this factory creates. |
Methods
| Method | Description |
|---|---|
| construct(container, dynamicDependencies) | Constructs an instance of the factory's object. |
| registerTransformer(transformer) | Registers a transformer function to alter the object after instantiation but before returning the final constructed instance. |