Generic provider factory.

Type Parameters

  • T

Hierarchy

  • ProviderFactory

Constructors

Properties

Methods

Constructors

Properties

#providers: Map<string, ProviderFactoryMethod<T>> = ...

Methods

  • Create a new provider.

    Returns

    The new provider.

    Throws

    if The give provider name is not registered, or the constructor parameters of the providers are either missing or invalid.

    Parameters

    • name: string

      The name of the concrete provider implementation.

    • params: any

      The parameters to be passed to the concrete implementation constructor.

    • logger: Logger

      The logger instance to be used in the service.

    Returns Promise<T>

Generated using TypeDoc