Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NestFactoryStatic

publicapi

Hierarchy

  • NestFactoryStatic

Index

Properties

Private abortOnError

abortOnError: boolean = true

Private Readonly logger

logger: Logger = new Logger('NestFactory', true)

Methods

Private applyLogger

  • applyLogger(options: NestApplicationContextOptions | undefined): void

create

  • create<T>(module: any, options?: NestApplicationOptions): Promise<T>
  • create<T>(module: any, httpAdapter: AbstractHttpAdapter, options?: NestApplicationOptions): Promise<T>
  • Creates an instance of NestApplication.

    Type parameters

    • T: INestApplication = INestApplication

    Parameters

    • module: any

      Entry (root) application module class

    • Optional options: NestApplicationOptions

      List of options to initialize NestApplication

    Returns Promise<T>

    A promise that, when resolved, contains a reference to the NestApplication instance.

  • Creates an instance of NestApplication with the specified httpAdapter.

    Type parameters

    • T: INestApplication = INestApplication

    Parameters

    • module: any

      Entry (root) application module class

    • httpAdapter: AbstractHttpAdapter

      Adapter to proxy the request/response cycle to the underlying HTTP server

    • Optional options: NestApplicationOptions

      List of options to initialize NestApplication

    Returns Promise<T>

    A promise that, when resolved, contains a reference to the NestApplication instance.

Private createAdapterProxy

createApplicationContext

  • createApplicationContext(module: any, options?: NestApplicationContextOptions): Promise<INestApplicationContext>
  • Creates an instance of NestApplicationContext.

    Parameters

    • module: any

      Entry (root) application module class

    • Optional options: NestApplicationContextOptions

      Optional Nest application configuration

    Returns Promise<INestApplicationContext>

    A promise that, when resolved, contains a reference to the NestApplicationContext instance.

Private createExceptionProxy

  • createExceptionProxy(): (Anonymous function)

Private createExceptionZone

  • createExceptionZone(receiver: Record<string, any>, prop: string): Function

Private createHttpAdapter

createMicroservice

  • createMicroservice<T>(module: any, options?: NestMicroserviceOptions & T): Promise<INestMicroservice>
  • Creates an instance of NestMicroservice.

    Type parameters

    • T: object

    Parameters

    • module: any

      Entry (root) application module class

    • Optional options: NestMicroserviceOptions & T

      Optional microservice configuration

    Returns Promise<INestMicroservice>

    A promise that, when resolved, contains a reference to the NestMicroservice instance.

Private createNestInstance

  • createNestInstance<T>(instance: T): T

Private createProxy

  • createProxy(target: any): any

Private handleInitializationError

  • handleInitializationError(err: unknown): void

Private initialize

Private isHttpServer

  • isHttpServer(serverOrOptions: AbstractHttpAdapter | NestApplicationOptions): serverOrOptions is AbstractHttpAdapter

Private setAbortOnError

  • setAbortOnError(serverOrOptions?: AbstractHttpAdapter | NestApplicationOptions, options?: NestApplicationContextOptions | NestApplicationOptions): void

Generated using TypeDoc