Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuardsContextCreator

Hierarchy

Index

Constructors

constructor

Properties

Private Optional Readonly config

Private Readonly container

container: NestContainer

Private moduleContext

moduleContext: string

Methods

create

  • create(instance: Controller, callback: (...args: unknown[]) => unknown, module: string, contextId?: ContextId, inquirerId?: string): CanActivate[]

createConcreteContext

  • createConcreteContext<T, R>(metadata: T, contextId?: ContextId, inquirerId?: string): R

createContext

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

getGlobalMetadata

  • getGlobalMetadata<T>(contextId?: ContextId, inquirerId?: string): T

getGuardInstance

  • getGuardInstance(guard: Function | CanActivate, contextId?: ContextId, inquirerId?: string): CanActivate | null

getInstanceByMetatype

reflectClassMetadata

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

reflectMethodMetadata

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

Generated using TypeDoc