Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Container

Hierarchy

Implements

Index

Constructors

constructor

Properties

baseDir

baseDir: string

configLocations

configLocations: string[] = []

dependencyMap

dependencyMap: Map<string, ObjectDependencyTree> = new Map()

id

id: string = uuidv1()

Protected lifeCycles

lifeCycles: ILifeCycle[] = []

messageSource

messageSource: IMessageSource

parent

parser

props

props: ObjectConfiguration = new ObjectConfiguration()

Protected readied

readied: boolean = false

Protected refreshing

refreshing: boolean = false

registry

Protected resolverFactory

resolverFactory: ManagedResolverFactory

Static defaultMaxListeners

defaultMaxListeners: number

Accessors

isReady

  • get isReady(): boolean

Methods

addLifeCycle

addListener

  • addListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

afterEachCreated

  • afterEachCreated(fn: function): void

beforeEachCreated

  • beforeEachCreated(fn: function): void

bind

Private convertOptionsToDefinition

createChild

Protected createObjectDependencyTree

  • createObjectDependencyTree(identifier: any, definition: any): void

dumpDependency

  • dumpDependency(): any

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

get

  • get<T>(identifier: any, args?: any): T

getAsync

  • getAsync<T>(identifier: any, args?: any): Promise<T>

Protected getIdentifier

  • getIdentifier(target: any): any

Protected getManagedResolverFactory

getMaxListeners

  • getMaxListeners(): number
  • Returns number

init

  • init(): void

isAsync

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

loadDefinitions

  • loadDefinitions(configLocations: string[]): void

loadResource

off

  • off(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

once

  • once(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

ready

  • ready(): Promise<void>

refreshAsync

  • refreshAsync(): Promise<void>

registerCustomBinding

registerDefinition

registerObject

Protected registerObjectPropertyParser

  • registerObjectPropertyParser(): void

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeLifeCycle

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

    • event: string | symbol
    • listener: function
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

resolve

  • resolve<T>(target: T): T

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

stop

  • stop(): Promise<void>

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc