Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PipesContextCreator

Hierarchy

  • ContextCreator
  • ContextCreator
    • PipesContextCreator

Index

Constructors

constructor

  • Parameters

    • container: any
    • config: any

    Returns PipesContextCreator

Properties

Private Optional Readonly config

config: ApplicationConfig

Private Readonly container

container: NestContainer

Private moduleContext

moduleContext: string

Methods

create

  • create(instance: any, callback: any, moduleKey: any, contextId?: ContextId, inquirerId: any): any
  • Parameters

    • instance: any
    • callback: any
    • moduleKey: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirerId: any

    Returns any

createConcreteContext

  • createConcreteContext(metadata: any, contextId?: ContextId, inquirerId: any): any[]
  • Parameters

    • metadata: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirerId: any

    Returns any[]

createContext

  • createContext<T, R>(instance: Controller, callback: (...args: any[]) => void, metadataKey: string, contextId?: ContextId, inquirerId?: string): R
  • Type parameters

    • T: unknown[] = any

    • R: unknown[] = any

    Parameters

    • instance: Controller
    • callback: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    • metadataKey: string
    • Optional contextId: ContextId
    • Optional inquirerId: string

    Returns R

getGlobalMetadata

  • getGlobalMetadata(contextId?: ContextId, inquirerId: any): any
  • Parameters

    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirerId: any

    Returns any

getInstanceByMetatype

  • getInstanceByMetatype(metatype: any): any
  • Parameters

    • metatype: any

    Returns any

getPipeInstance

  • getPipeInstance(pipe: any, contextId?: ContextId, inquirerId: any): any
  • Parameters

    • pipe: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirerId: any

    Returns any

reflectClassMetadata

  • reflectClassMetadata<T>(instance: Controller, metadataKey: string): T
  • Type parameters

    • T

    Parameters

    Returns T

reflectMethodMetadata

  • reflectMethodMetadata<T>(callback: (...args: unknown[]) => unknown, metadataKey: string): T
  • Type parameters

    • T

    Parameters

    • callback: (...args: unknown[]) => unknown
        • (...args: unknown[]): unknown
        • Parameters

          • Rest ...args: unknown[]

          Returns unknown

    • metadataKey: string

    Returns T

setModuleContext

  • setModuleContext(context: any): void
  • Parameters

    • context: any

    Returns void

Generated using TypeDoc