Class: Entry<T>
@ima/core.Entry
Object container entry, representing either a class, interface, constant or an alias.
Type parameters
Name | Type |
---|---|
T | any |
Constructors
constructor
• new Entry<T
>(classConstructor
, dependencies?
, referrer?
, options?
)
Initializes the entry.
Type parameters
Name | Type |
---|---|
T | any |
Parameters
Name | Type | Description |
---|---|---|
classConstructor | EntryConstructor <T > | The class constructor or constant value getter. |
dependencies? | any [] | The dependencies to pass into the constructor function. |
referrer? | string | Reference to part of application that created this entry. |
options? | EntryOptions | The 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
Name | Type |
---|---|
dependencies | any [] |
Returns
void
Defined in
packages/core/src/oc/Entry.ts:74
options
• get
options(): EntryOptions
Returns
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
Name | Type |
---|---|
entry | Entry <TInfer > |
Returns
Entry
<TInfer
>