Options
All
  • Public
  • Public/Protected
  • All
Menu

Context exists in singleton for all app

Hierarchy

  • Context

Index

Properties

Static Private _aliases

_aliases: Map<any, any> = new Map()

Static Private _fabrics

_fabrics: Map<any, Function> = new Map()

Static Private _injects

_injects: Map<any, LazyInject> = new Map()

Static Private _meta

_meta: Map<any, InjectMeta> = new Map()

Methods

Static Private _getAlias

  • _getAlias(clsOrAlias: any): any

Static Private _getInjectMeta

Static Private _initMetaIfNotExists

  • _initMetaIfNotExists(targetClsOrAlias: any): void

Static Private _registerAlias

  • _registerAlias(cls: any, als: any): void

Static Private _registerLazyDependency

  • _registerLazyDependency(clsOrAlias: any, key: string, dependency: any, callback: Function): void
  • Parameters

    • clsOrAlias: any
    • key: string
    • dependency: any
    • callback: Function

    Returns void

Static Private _resolveLazy

Static bind

  • bind(targetClsOrAlias: any, cls: Function): Context

Static bindFabrica

  • bindFabrica<T>(targetClsOrAlias: Function, fabrica: function): Context

Static resolve

  • resolve<C>(clsOrAlias: any): C

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc