@eveble/eveble

Hierarchy

  • Container

  • Container

    Injector

Implemented by

Index

Properties

Methods

Properties

id

id: number

Inherited from Injector.id

Overrides Injector.id


options

options: ContainerOptions

Inherited from Injector.options

Overrides Injector.options


parent

parent: Container | null

Inherited from Injector.parent

Overrides Injector.parent

Methods

applyCustomMetadataReader

applyCustomMetadataReader(metadataReader: MetadataReader): void

Inherited from Injector.applyCustomMetadataReader

Overrides Injector.applyCustomMetadataReader

Parameters:

NameType
metadataReaderMetadataReader

Returns: void


applyMiddleware

applyMiddleware(...middleware: Middleware[]): void

Inherited from Injector.applyMiddleware

Overrides Injector.applyMiddleware

Parameters:

NameType
...middlewareMiddleware[]

Returns: void


bind

bindT›(serviceIdentifier: inversifyTypes.ServiceIdentifier‹T›): inversifyTypes.BindingToSyntax‹T› & object

Overrides void

Type parameters:

T

Parameters:

NameType
serviceIdentifierinversifyTypes.ServiceIdentifier‹T›

Returns: inversifyTypes.BindingToSyntax‹T› & object

bindT›(serviceIdentifier: inversifyTypes.ServiceIdentifier‹T›): inversifyTypes.BindingToSyntax‹T› & object

Type parameters:

T

Parameters:

NameType
serviceIdentifierinversifyTypes.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:

NameType
scopeinversifyTypes.BindingScope

Returns: inversifyTypes.ServiceIdentifier‹any›[]

findByScope(scope: inversifyTypes.BindingScope): inversifyTypes.ServiceIdentifier‹any›[]

Parameters:

NameType
scopeinversifyTypes.BindingScope

Returns: inversifyTypes.ServiceIdentifier‹any›[]


get

getT›(serviceIdentifier: ServiceIdentifier‹T›): T

Inherited from Injector.get

Overrides Injector.get

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›

Returns: T


getAll

getAllT›(serviceIdentifier: ServiceIdentifier‹T›): T[]

Inherited from Injector.getAll

Overrides Injector.getAll

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›

Returns: T[]


getAllAsync

getAllAsyncT›(serviceIdentifier: ServiceIdentifier‹T›): Promise‹T›[]

Inherited from Injector.getAllAsync

Overrides Injector.getAllAsync

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›

Returns: Promise‹T›[]


getAllNamed

getAllNamedT›(serviceIdentifier: ServiceIdentifier‹T›, named: string | number | symbol): T[]

Inherited from Injector.getAllNamed

Overrides Injector.getAllNamed

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
namedstring | number | symbol

Returns: T[]


getAllNamedAsync

getAllNamedAsyncT›(serviceIdentifier: ServiceIdentifier‹T›, named: string | number | symbol): Promise‹T›[]

Inherited from Injector.getAllNamedAsync

Overrides Injector.getAllNamedAsync

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
namedstring | number | symbol

Returns: Promise‹T›[]


getAllTagged

getAllTaggedT›(serviceIdentifier: ServiceIdentifier‹T›, key: string | number | symbol, value: any): T[]

Inherited from Injector.getAllTagged

Overrides Injector.getAllTagged

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
keystring | number | symbol
valueany

Returns: T[]


getAllTaggedAsync

getAllTaggedAsyncT›(serviceIdentifier: ServiceIdentifier‹T›, key: string | number | symbol, value: any): Promise‹T›[]

Inherited from Injector.getAllTaggedAsync

Overrides Injector.getAllTaggedAsync

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
keystring | number | symbol
valueany

Returns: Promise‹T›[]


getAsync

getAsyncT›(serviceIdentifier: ServiceIdentifier‹T›): Promise‹T›

Inherited from Injector.getAsync

Overrides Injector.getAsync

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›

Returns: Promise‹T›


getNamed

getNamedT›(serviceIdentifier: ServiceIdentifier‹T›, named: string | number | symbol): T

Inherited from Injector.getNamed

Overrides Injector.getNamed

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
namedstring | number | symbol

Returns: T


getNamedAsync

getNamedAsyncT›(serviceIdentifier: ServiceIdentifier‹T›, named: string | number | symbol): Promise‹T›

Inherited from Injector.getNamedAsync

Overrides Injector.getNamedAsync

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
namedstring | number | symbol

Returns: Promise‹T›


getTagged

getTaggedT›(serviceIdentifier: ServiceIdentifier‹T›, key: string | number | symbol, value: any): T

Inherited from Injector.getTagged

Overrides Injector.getTagged

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
keystring | number | symbol
valueany

Returns: T


getTaggedAsync

getTaggedAsyncT›(serviceIdentifier: ServiceIdentifier‹T›, key: string | number | symbol, value: any): Promise‹T›

Inherited from Injector.getTaggedAsync

Overrides Injector.getTaggedAsync

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
keystring | number | symbol
valueany

Returns: Promise‹T›


injectInto

injectInto(value: any): void

Parameters:

NameType
valueany

Returns: void

injectInto(value: any): void

Parameters:

NameType
valueany

Returns: void


injectIntoAsync

injectIntoAsync(value: any): Promise‹void›

Parameters:

NameType
valueany

Returns: Promise‹void›

injectIntoAsync(value: any): Promise‹void›

Parameters:

NameType
valueany

Returns: Promise‹void›


isBound

isBound(serviceIdentifier: ServiceIdentifier‹any›): boolean

Inherited from Injector.isBound

Overrides Injector.isBound

Parameters:

NameType
serviceIdentifierServiceIdentifier‹any›

Returns: boolean


isBoundNamed

isBoundNamed(serviceIdentifier: ServiceIdentifier‹any›, named: string | number | symbol): boolean

Inherited from Injector.isBoundNamed

Overrides Injector.isBoundNamed

Parameters:

NameType
serviceIdentifierServiceIdentifier‹any›
namedstring | number | symbol

Returns: boolean


isBoundTagged

isBoundTagged(serviceIdentifier: ServiceIdentifier‹any›, key: string | number | symbol, value: any): boolean

Inherited from Injector.isBoundTagged

Overrides Injector.isBoundTagged

Parameters:

NameType
serviceIdentifierServiceIdentifier‹any›
keystring | number | symbol
valueany

Returns: boolean


load

load(...modules: ContainerModule[]): void

Inherited from Injector.load

Overrides Injector.load

Parameters:

NameType
...modulesContainerModule[]

Returns: void


loadAsync

loadAsync(...modules: AsyncContainerModule[]): Promise‹void›

Inherited from Injector.loadAsync

Overrides Injector.loadAsync

Parameters:

NameType
...modulesAsyncContainerModule[]

Returns: Promise‹void›


onActivation

onActivationT›(serviceIdentifier: ServiceIdentifier‹T›, onActivation: BindingActivation‹T›): void

Inherited from Injector.onActivation

Overrides Injector.onActivation

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
onActivationBindingActivation‹T›

Returns: void


onDeactivation

onDeactivationT›(serviceIdentifier: ServiceIdentifier‹T›, onDeactivation: BindingDeactivation‹T›): void

Inherited from Injector.onDeactivation

Overrides Injector.onDeactivation

Type parameters:

T

Parameters:

NameType
serviceIdentifierServiceIdentifier‹T›
onDeactivationBindingDeactivation‹T›

Returns: void


rebind

rebindT›(serviceIdentifier: interfaces.ServiceIdentifier‹T›): BindingToSyntax‹T›

Inherited from Injector.rebind

Overrides Injector.rebind

Type parameters:

T

Parameters:

NameType
serviceIdentifierinterfaces.ServiceIdentifier‹T›

Returns: BindingToSyntax‹T›


resolve

resolveT›(constructorFunction: interfaces.Newable‹T›): T

Inherited from Injector.resolve

Overrides Injector.resolve

Type parameters:

T

Parameters:

NameType
constructorFunctioninterfaces.Newable‹T›

Returns: T


restore

restore(): void

Inherited from Injector.restore

Overrides Injector.restore

Returns: void


snapshot

snapshot(): void

Inherited from Injector.snapshot

Overrides Injector.snapshot

Returns: void


unbind

unbind(serviceIdentifier: ServiceIdentifier‹any›): void

Inherited from Injector.unbind

Overrides Injector.unbind

Parameters:

NameType
serviceIdentifierServiceIdentifier‹any›

Returns: void


unbindAll

unbindAll(): void

Inherited from Injector.unbindAll

Overrides Injector.unbindAll

Returns: void


unload

unload(...modules: ContainerModule[]): void

Inherited from Injector.unload

Overrides Injector.unload

Parameters:

NameType
...modulesContainerModule[]

Returns: void