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 Summary)

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 = unknown>(): Function;
          <T = unknown>(name: string): Function;
          <T = unknown>(token: Token<unknown>): Function;
          <T = unknown>(options?: ServiceOptions<T>): Function;
      }
        • <T = unknown>(): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Returns Function

        • <T = unknown>(name: string): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Parameters

          • name: string

          Returns Function

        • <T = unknown>(token: Token<unknown>): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Parameters

          • token: Token<unknown>

          Returns Function

        • <T = unknown>(options?: ServiceOptions<T>): Function
        • Marks class as a service that can be injected using Container.

          Type Parameters

          • T = unknown

          Parameters

          • Optionaloptions: ServiceOptions<T>

          Returns Function

    Returns this

  • Type Parameters

    • T

    Parameters

    • token: Token<T>

    Returns this