Class AbstractFactory<T>Abstract

Abstract base class for dependency container factories.

Abstract

Type Parameters

  • T

Hierarchy

Constructors

Properties

token: any

Token that was registered for this factory. In most cases, this is the static form of the item that is to be produced by this factory.

Var

Methods

  • Get a human-readable name of the token this factory produces. This is meant for debugging output only.

    Returns string

  • Should return true if the given identifier matches the token for this factory.

    Returns

    boolean

    Parameters

    • something: unknown

    Returns boolean

  • Produce an instance of the token.

    Parameters

    • dependencies: any[]

      the resolved dependencies, in order

    • parameters: any[]

      the bound constructor parameters, in order

    Returns T