Class IgpapiAbstract

Hierarchy

  • Igpapi

    Constructors

    Properties

    container: ContainerInstance = ...
    resolve: {
        <T>(type: Constructable<T>): T;
        <T>(type: AbstractConstructable<T>): T;
        <T>(id: string): T;
        <T>(id: Token<T>): T;
        <T>(id: ServiceIdentifier<T>): T;
    } = ...

    Type declaration

      • <T>(type: Constructable<T>): T
      • Retrieves the service with given name or type from the service container. Optionally, parameters can be passed in case if instance is initialized in the container for the first time.

        Type Parameters

        • T

        Parameters

        • type: Constructable<T>

        Returns T

      • <T>(type: AbstractConstructable<T>): T
      • Type Parameters

        • T

        Parameters

        • type: AbstractConstructable<T>

        Returns T

      • <T>(id: string): T
      • Type Parameters

        • T

        Parameters

        • id: string

        Returns T

      • <T>(id: Token<T>): T
      • Type Parameters

        • T

        Parameters

        • id: Token<T>

        Returns T

      • <T>(id: ServiceIdentifier<T>): T
      • Type Parameters

        • T

        Parameters

        • id: ServiceIdentifier<T>

        Returns T

    set: {
        <T>(service: ServiceMetadata<T>): this;
        <T>(type: Constructable<T>, instance: T): this;
        <T>(type: AbstractConstructable<T>, instance: T): this;
        <T>(name: string, instance: T): this;
        <T>(token: Token<T>, instance: T): this;
        <T>(token: ServiceIdentifier, instance: T): this;
        <T>(metadata: ServiceOptions<T>): this;
        <T>(metadataArray: ServiceOptions<T>[]): this;
    } = ...

    Type declaration

      • <T>(service: ServiceMetadata<T>): this
      • Sets a value for the given type or service name in the container.

        Type Parameters

        • T = unknown

        Parameters

        • service: ServiceMetadata<T>

        Returns this

      • <T>(type: Constructable<T>, instance: T): this
      • Type Parameters

        • T = unknown

        Parameters

        • type: Constructable<T>
        • instance: T

        Returns this

      • <T>(type: AbstractConstructable<T>, instance: T): this
      • Type Parameters

        • T = unknown

        Parameters

        • type: AbstractConstructable<T>
        • instance: T

        Returns this

      • <T>(name: string, instance: T): this
      • Type Parameters

        • T = unknown

        Parameters

        • name: string
        • instance: T

        Returns this

      • <T>(token: Token<T>, instance: T): this
      • Type Parameters

        • T = unknown

        Parameters

        • token: Token<T>
        • instance: T

        Returns this

      • <T>(token: ServiceIdentifier, instance: T): this
      • Type Parameters

        • T = unknown

        Parameters

        • token: ServiceIdentifier
        • instance: T

        Returns this

      • <T>(metadata: ServiceOptions<T>): this
      • Type Parameters

        • T = unknown

        Parameters

        • metadata: ServiceOptions<T>

        Returns this

      • <T>(metadataArray: ServiceOptions<T>[]): this
      • Type Parameters

        • T = unknown

        Parameters

        • metadataArray: ServiceOptions<T>[]

        Returns this

    Accessors

    Methods

    • Parameters

      • ConcreteState: Constructor<IgpapiState>
      • Optionalinput: any

      Returns void