Class Container

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(parent: Container): Container

Parameters

Returns

Container

Properties

public cache: {}

public children: Array<any>

public injections: {}

public parent: Container

public registry: {}

public resolver: Function

public typeInjections: {}

Methods

public child(): Container

Returns

Container

public describe(fullName: string): string

Parameters

  • fullName: string

Returns

string

public destroy()

public factoryInjection(factoryName: string, property: string, injectionName: string)

Parameters

  • factoryName: string
  • property: string
  • injectionName: string

public has(fullName: string): boolean

Parameters

  • fullName: string

Returns

boolean

public injection(factoryName: string, property: string, injectionName: string)

Parameters

  • factoryName: string
  • property: string
  • injectionName: string

public lookup(fullName: string, options?: {}): any

Parameters

  • fullName: string
  • options?: {} optional

Returns

any

public lookupFactory(fullName: string): any

Parameters

  • fullName: string

Returns

any

public makeToString(factory: any, fullName: string): Function

Parameters

  • factory: any
  • fullName: string

Returns

Function

public normalize(fullName: string): string

Parameters

  • fullName: string

Returns

string

public options(type: string, options: {})

Parameters

  • type: string
  • options: {}

public optionsForType(type: string, options: {})

Parameters

  • type: string
  • options: {}

public register(fullName: string, factory: Function, options?: {})

registers a factory for later injection

Parameters

  • fullName: string

    type:name (e.g., 'model:user')

  • factory: Function

    (e.g., App.Person)

  • options?: {} optional

public reset()

public resolve(fullName: string): Function

Parameters

  • fullName: string

Returns

Function

public set(object: {}, key: string, value: any)

Parameters

  • object: {}
  • key: string
  • value: any

public unregister(fullName: string)

Parameters

  • fullName: string