Class TypeDiDependencyRegistryEngine

Interface to facilitate the ability to add custom IOC containers by conforming to the proxy of adding and retrieval of services

Hierarchy (view full)

Constructors

Properties

_serviceSet: Set<unknown>
injector: undefined | typeof Container
useToken: boolean
token: Token<unknown>

Accessors

Methods

  • Add a service from the IOC container.

    Parameters

    • serviceConstructor: any

      The type of service to add

    Returns void

  • Parameters

    • service: {
          <T>(): Function;
          <T>(name: string): Function;
          <T>(token: Token<unknown>): Function;
          <T>(options?: ServiceOptions<T>): Function;
      }
        • <T>(): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Returns Function

        • <T>(name): Function
        • Type Parameters

          • T = unknown

          Parameters

          • name: string

          Returns Function

        • <T>(token): Function
        • Type Parameters

          • T = unknown

          Parameters

          • token: Token<unknown>

          Returns Function

        • <T>(options?): Function
        • Type Parameters

          • T = unknown

          Parameters

          • Optionaloptions: ServiceOptions<T>

          Returns Function

    Returns this

  • Type Parameters

    • T

    Parameters

    • token: Token<T>

    Returns this