Skip to main content

Class: ModuleRef

moduleRef.ModuleRef

Make sure that Container type for getting module.

Hierarchy

  • Container

    ModuleRef

Constructors

constructor

new ModuleRef(containerOptions?)

Parameters

NameType
containerOptions?ContainerOptions

Inherited from

Container.constructor

Defined in

node_modules/inversify/lib/container/container.d.ts:12

Properties

id

id: number

Inherited from

Container.id

Defined in

node_modules/inversify/lib/container/container.d.ts:3


options

Readonly options: ContainerOptions

Inherited from

Container.options

Defined in

node_modules/inversify/lib/container/container.d.ts:5


parent

parent: null | Container

Inherited from

Container.parent

Defined in

node_modules/inversify/lib/container/container.d.ts:4

Methods

applyCustomMetadataReader

applyCustomMetadataReader(metadataReader): void

Parameters

NameType
metadataReaderMetadataReader

Returns

void

Inherited from

Container.applyCustomMetadataReader

Defined in

node_modules/inversify/lib/container/container.d.ts:27


applyMiddleware

applyMiddleware(...middlewares): void

Parameters

NameType
...middlewaresMiddleware[]

Returns

void

Inherited from

Container.applyMiddleware

Defined in

node_modules/inversify/lib/container/container.d.ts:26


bind

bind<T>(serviceIdentifier): BindingToSyntax<T>

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>

Returns

BindingToSyntax<T>

Inherited from

Container.bind

Defined in

node_modules/inversify/lib/container/container.d.ts:16


createChild

createChild(containerOptions?): Container

Parameters

NameType
containerOptions?ContainerOptions

Returns

Container

Inherited from

Container.createChild

Defined in

node_modules/inversify/lib/container/container.d.ts:25


get

get<T>(serviceIdentifier): T

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>

Returns

T

Inherited from

Container.get

Defined in

node_modules/inversify/lib/container/container.d.ts:28


getAll

getAll<T>(serviceIdentifier): T[]

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>

Returns

T[]

Inherited from

Container.getAll

Defined in

node_modules/inversify/lib/container/container.d.ts:31


getAllNamed

getAllNamed<T>(serviceIdentifier, named): T[]

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>
namedstring | number | symbol

Returns

T[]

Inherited from

Container.getAllNamed

Defined in

node_modules/inversify/lib/container/container.d.ts:33


getAllTagged

getAllTagged<T>(serviceIdentifier, key, value): T[]

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>
keystring | number | symbol
valueany

Returns

T[]

Inherited from

Container.getAllTagged

Defined in

node_modules/inversify/lib/container/container.d.ts:32


getNamed

getNamed<T>(serviceIdentifier, named): T

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>
namedstring | number | symbol

Returns

T

Inherited from

Container.getNamed

Defined in

node_modules/inversify/lib/container/container.d.ts:30


getTagged

getTagged<T>(serviceIdentifier, key, value): T

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>
keystring | number | symbol
valueany

Returns

T

Inherited from

Container.getTagged

Defined in

node_modules/inversify/lib/container/container.d.ts:29


isBound

isBound(serviceIdentifier): boolean

Parameters

NameType
serviceIdentifierServiceIdentifier<any>

Returns

boolean

Inherited from

Container.isBound

Defined in

node_modules/inversify/lib/container/container.d.ts:20


isBoundNamed

isBoundNamed(serviceIdentifier, named): boolean

Parameters

NameType
serviceIdentifierServiceIdentifier<any>
namedstring | number | symbol

Returns

boolean

Inherited from

Container.isBoundNamed

Defined in

node_modules/inversify/lib/container/container.d.ts:21


isBoundTagged

isBoundTagged(serviceIdentifier, key, value): boolean

Parameters

NameType
serviceIdentifierServiceIdentifier<any>
keystring | number | symbol
valueany

Returns

boolean

Inherited from

Container.isBoundTagged

Defined in

node_modules/inversify/lib/container/container.d.ts:22


load

load(...modules): void

Parameters

NameType
...modulesContainerModule[]

Returns

void

Inherited from

Container.load

Defined in

node_modules/inversify/lib/container/container.d.ts:13


loadAsync

loadAsync(...modules): Promise<void>

Parameters

NameType
...modulesAsyncContainerModule[]

Returns

Promise<void>

Inherited from

Container.loadAsync

Defined in

node_modules/inversify/lib/container/container.d.ts:14


rebind

rebind<T>(serviceIdentifier): BindingToSyntax<T>

Type parameters

Name
T

Parameters

NameType
serviceIdentifierServiceIdentifier<T>

Returns

BindingToSyntax<T>

Inherited from

Container.rebind

Defined in

node_modules/inversify/lib/container/container.d.ts:17


resolve

resolve<T>(constructorFunction): T

Type parameters

Name
T

Parameters

NameType
constructorFunctionNewable<T>

Returns

T

Inherited from

Container.resolve

Defined in

node_modules/inversify/lib/container/container.d.ts:34


restore

restore(): void

Returns

void

Inherited from

Container.restore

Defined in

node_modules/inversify/lib/container/container.d.ts:24


snapshot

snapshot(): void

Returns

void

Inherited from

Container.snapshot

Defined in

node_modules/inversify/lib/container/container.d.ts:23


unbind

unbind(serviceIdentifier): void

Parameters

NameType
serviceIdentifierServiceIdentifier<any>

Returns

void

Inherited from

Container.unbind

Defined in

node_modules/inversify/lib/container/container.d.ts:18


unbindAll

unbindAll(): void

Returns

void

Inherited from

Container.unbindAll

Defined in

node_modules/inversify/lib/container/container.d.ts:19


unload

unload(...modules): void

Parameters

NameType
...modulesContainerModule[]

Returns

void

Inherited from

Container.unload

Defined in

node_modules/inversify/lib/container/container.d.ts:15


merge

Static merge(container1, container2, ...container3): Container

Parameters

NameType
container1Container
container2Container
...container3Container[]

Returns

Container

Inherited from

Container.merge

Defined in

node_modules/inversify/lib/container/container.d.ts:11