@eveble/eveble
Hierarchy
Container
Container
↳ Injector
Implemented by
Index
Properties
Methods
- applyCustomMetadataReader
- applyMiddleware
- bind
- createChild
- findByScope
- get
- getAll
- getAllAsync
- getAllNamed
- getAllNamedAsync
- getAllTagged
- getAllTaggedAsync
- getAsync
- getNamed
- getNamedAsync
- getTagged
- getTaggedAsync
- injectInto
- injectIntoAsync
- isBound
- isBoundNamed
- isBoundTagged
- load
- loadAsync
- onActivation
- onDeactivation
- rebind
- resolve
- restore
- snapshot
- unbind
- unbindAll
- unload
Properties
id
• id: number
options
• options: ContainerOptions
Inherited from Injector.options
parent
• parent: Container | null
Inherited from Injector.parent
Methods
applyCustomMetadataReader
▸ applyCustomMetadataReader(metadataReader
: MetadataReader): void
Inherited from Injector.applyCustomMetadataReader
Overrides Injector.applyCustomMetadataReader
Parameters:
Name | Type |
---|---|
metadataReader | MetadataReader |
Returns: void
applyMiddleware
▸ applyMiddleware(...middleware
: Middleware[]): void
Inherited from Injector.applyMiddleware
Overrides Injector.applyMiddleware
Parameters:
Name | Type |
---|---|
...middleware | Middleware[] |
Returns: void
bind
▸ bind‹T›(serviceIdentifier
: inversifyTypes.ServiceIdentifier‹T›): inversifyTypes.BindingToSyntax‹T› & object
Overrides void
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | inversifyTypes.ServiceIdentifier‹T› |
Returns: inversifyTypes.BindingToSyntax‹T› & object
▸ bind‹T›(serviceIdentifier
: inversifyTypes.ServiceIdentifier‹T›): inversifyTypes.BindingToSyntax‹T› & object
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | inversifyTypes.ServiceIdentifier‹T› |
Returns: inversifyTypes.BindingToSyntax‹T› & object
createChild
▸ createChild(): Container
Inherited from Injector.createChild
Overrides Injector.createChild
Returns: Container
findByScope
▸ findByScope(scope
: inversifyTypes.BindingScope): inversifyTypes.ServiceIdentifier‹any›[]
Parameters:
Name | Type |
---|---|
scope | inversifyTypes.BindingScope |
Returns: inversifyTypes.ServiceIdentifier‹any›[]
▸ findByScope(scope
: inversifyTypes.BindingScope): inversifyTypes.ServiceIdentifier‹any›[]
Parameters:
Name | Type |
---|---|
scope | inversifyTypes.BindingScope |
Returns: inversifyTypes.ServiceIdentifier‹any›[]
get
▸ get‹T›(serviceIdentifier
: ServiceIdentifier‹T›): T
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
Returns: T
getAll
▸ getAll‹T›(serviceIdentifier
: ServiceIdentifier‹T›): T[]
Inherited from Injector.getAll
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
Returns: T[]
getAllAsync
▸ getAllAsync‹T›(serviceIdentifier
: ServiceIdentifier‹T›): Promise‹T›[]
Inherited from Injector.getAllAsync
Overrides Injector.getAllAsync
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
Returns: Promise‹T›[]
getAllNamed
▸ getAllNamed‹T›(serviceIdentifier
: ServiceIdentifier‹T›, named
: string | number | symbol): T[]
Inherited from Injector.getAllNamed
Overrides Injector.getAllNamed
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
named | string | number | symbol |
Returns: T[]
getAllNamedAsync
▸ getAllNamedAsync‹T›(serviceIdentifier
: ServiceIdentifier‹T›, named
: string | number | symbol): Promise‹T›[]
Inherited from Injector.getAllNamedAsync
Overrides Injector.getAllNamedAsync
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
named | string | number | symbol |
Returns: Promise‹T›[]
getAllTagged
▸ getAllTagged‹T›(serviceIdentifier
: ServiceIdentifier‹T›, key
: string | number | symbol, value
: any): T[]
Inherited from Injector.getAllTagged
Overrides Injector.getAllTagged
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
key | string | number | symbol |
value | any |
Returns: T[]
getAllTaggedAsync
▸ getAllTaggedAsync‹T›(serviceIdentifier
: ServiceIdentifier‹T›, key
: string | number | symbol, value
: any): Promise‹T›[]
Inherited from Injector.getAllTaggedAsync
Overrides Injector.getAllTaggedAsync
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
key | string | number | symbol |
value | any |
Returns: Promise‹T›[]
getAsync
▸ getAsync‹T›(serviceIdentifier
: ServiceIdentifier‹T›): Promise‹T›
Inherited from Injector.getAsync
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
Returns: Promise‹T›
getNamed
▸ getNamed‹T›(serviceIdentifier
: ServiceIdentifier‹T›, named
: string | number | symbol): T
Inherited from Injector.getNamed
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
named | string | number | symbol |
Returns: T
getNamedAsync
▸ getNamedAsync‹T›(serviceIdentifier
: ServiceIdentifier‹T›, named
: string | number | symbol): Promise‹T›
Inherited from Injector.getNamedAsync
Overrides Injector.getNamedAsync
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
named | string | number | symbol |
Returns: Promise‹T›
getTagged
▸ getTagged‹T›(serviceIdentifier
: ServiceIdentifier‹T›, key
: string | number | symbol, value
: any): T
Inherited from Injector.getTagged
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
key | string | number | symbol |
value | any |
Returns: T
getTaggedAsync
▸ getTaggedAsync‹T›(serviceIdentifier
: ServiceIdentifier‹T›, key
: string | number | symbol, value
: any): Promise‹T›
Inherited from Injector.getTaggedAsync
Overrides Injector.getTaggedAsync
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
key | string | number | symbol |
value | any |
Returns: Promise‹T›
injectInto
▸ injectInto(value
: any): void
Parameters:
Name | Type |
---|---|
value | any |
Returns: void
▸ injectInto(value
: any): void
Parameters:
Name | Type |
---|---|
value | any |
Returns: void
injectIntoAsync
▸ injectIntoAsync(value
: any): Promise‹void›
Parameters:
Name | Type |
---|---|
value | any |
Returns: Promise‹void›
▸ injectIntoAsync(value
: any): Promise‹void›
Parameters:
Name | Type |
---|---|
value | any |
Returns: Promise‹void›
isBound
▸ isBound(serviceIdentifier
: ServiceIdentifier‹any›): boolean
Inherited from Injector.isBound
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹any› |
Returns: boolean
isBoundNamed
▸ isBoundNamed(serviceIdentifier
: ServiceIdentifier‹any›, named
: string | number | symbol): boolean
Inherited from Injector.isBoundNamed
Overrides Injector.isBoundNamed
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹any› |
named | string | number | symbol |
Returns: boolean
isBoundTagged
▸ isBoundTagged(serviceIdentifier
: ServiceIdentifier‹any›, key
: string | number | symbol, value
: any): boolean
Inherited from Injector.isBoundTagged
Overrides Injector.isBoundTagged
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹any› |
key | string | number | symbol |
value | any |
Returns: boolean
load
▸ load(...modules
: ContainerModule[]): void
Parameters:
Name | Type |
---|---|
...modules | ContainerModule[] |
Returns: void
loadAsync
▸ loadAsync(...modules
: AsyncContainerModule[]): Promise‹void›
Inherited from Injector.loadAsync
Parameters:
Name | Type |
---|---|
...modules | AsyncContainerModule[] |
Returns: Promise‹void›
onActivation
▸ onActivation‹T›(serviceIdentifier
: ServiceIdentifier‹T›, onActivation
: BindingActivation‹T›): void
Inherited from Injector.onActivation
Overrides Injector.onActivation
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
onActivation | BindingActivation‹T› |
Returns: void
onDeactivation
▸ onDeactivation‹T›(serviceIdentifier
: ServiceIdentifier‹T›, onDeactivation
: BindingDeactivation‹T›): void
Inherited from Injector.onDeactivation
Overrides Injector.onDeactivation
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹T› |
onDeactivation | BindingDeactivation‹T› |
Returns: void
rebind
▸ rebind‹T›(serviceIdentifier
: interfaces.ServiceIdentifier‹T›): BindingToSyntax‹T›
Inherited from Injector.rebind
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
serviceIdentifier | interfaces.ServiceIdentifier‹T› |
Returns: BindingToSyntax‹T›
resolve
▸ resolve‹T›(constructorFunction
: interfaces.Newable‹T›): T
Inherited from Injector.resolve
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
constructorFunction | interfaces.Newable‹T› |
Returns: T
restore
▸ restore(): void
Inherited from Injector.restore
Returns: void
snapshot
▸ snapshot(): void
Inherited from Injector.snapshot
Returns: void
unbind
▸ unbind(serviceIdentifier
: ServiceIdentifier‹any›): void
Inherited from Injector.unbind
Parameters:
Name | Type |
---|---|
serviceIdentifier | ServiceIdentifier‹any› |
Returns: void
unbindAll
▸ unbindAll(): void
Inherited from Injector.unbindAll
Returns: void
unload
▸ unload(...modules
: ContainerModule[]): void
Inherited from Injector.unload
Parameters:
Name | Type |
---|---|
...modules | ContainerModule[] |
Returns: void