Skip to main content

Class: Entry<T>

@ima/core.Entry

Object container entry, representing either a class, interface, constant or an alias.

Type parameters

NameType
Tany

Constructors

constructor

new Entry<T>(classConstructor, dependencies?, referrer?, options?)

Initializes the entry.

Type parameters

NameType
Tany

Parameters

NameTypeDescription
classConstructorEntryConstructor<T>The class constructor or constant value getter.
dependencies?any[]The dependencies to pass into the constructor function.
referrer?stringReference to part of application that created this entry.
options?EntryOptionsThe Entry options.

Defined in

packages/core/src/oc/Entry.ts:60

Properties

#dependencies

Private #dependencies: any[]

Dependencies of the class constructor of the class represented by this entry.

Defined in

packages/core/src/oc/Entry.ts:31


#options

Private #options: EntryOptions

The Entry options.

Defined in

packages/core/src/oc/Entry.ts:36


#overrideCounter

Private #overrideCounter: number = 0

The override counter

Defined in

packages/core/src/oc/Entry.ts:41


#referrer

Private Optional #referrer: string

Reference to part of application that created this entry.

Defined in

packages/core/src/oc/Entry.ts:47


classConstructor

classConstructor: EntryConstructor<T>

The constructor of the class represented by this entry, or the getter of the value of the constant represented by this entry.

Defined in

packages/core/src/oc/Entry.ts:20


sharedInstance

sharedInstance: null | EntrySharedInstance<T> = null

The shared instance of the class represented by this entry.

Defined in

packages/core/src/oc/Entry.ts:25

Accessors

dependencies

get dependencies(): any[]

Returns

any[]

Defined in

packages/core/src/oc/Entry.ts:95

set dependencies(dependencies): void

Parameters

NameType
dependenciesany[]

Returns

void

Defined in

packages/core/src/oc/Entry.ts:74


options

get options(): EntryOptions

Returns

EntryOptions

Defined in

packages/core/src/oc/Entry.ts:107


referrer

get referrer(): undefined | string

Returns

undefined | string

Defined in

packages/core/src/oc/Entry.ts:99


writeable

get writeable(): boolean

Returns

boolean

Defined in

packages/core/src/oc/Entry.ts:103

Methods

from

Static from<TInfer>(entry): Entry<TInfer>

Type parameters

Name
TInfer

Parameters

NameType
entryEntry<TInfer>

Returns

Entry<TInfer>

Defined in

packages/core/src/oc/Entry.ts:111