Skip to main content
Version: 1.x

@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

PropertyTypeDescription
TypeTThe concrete type this factory creates.

Methods

MethodDescription
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.