Properties
Private _instanceLinksHost
Protected Readonly container
Private Readonly injector
Accessors
Private instanceLinksHost
Methods
Abstract create
- create<T>(type: Type<T>): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
Protected find
- find<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, contextModule?: Module): TResult
-
Type parameters
-
TInput = any
-
TResult = TInput
Parameters
-
typeOrToken: Type<TInput> | string | symbol
-
Optional contextModule: Module
Returns TResult
Abstract get
- get<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, options?: { strict: boolean }): TResult
-
Type parameters
-
TInput = any
-
TResult = TInput
Parameters
-
typeOrToken: Type<TInput> | string | symbol
-
Optional options: { strict: boolean }
Returns TResult
Protected instantiateClass
- instantiateClass<T>(type: Type<T>, moduleRef: Module): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
introspect
- introspect<T>(token: Type<T> | string | symbol): IntrospectionResult
-
Type parameters
Parameters
-
token: Type<T> | string | symbol
Returns IntrospectionResult
registerRequestByContextId
- registerRequestByContextId<T>(request: T, contextId: ContextId): void
-
Type parameters
Parameters
Returns void
Abstract resolve
- resolve<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, contextId?: ContextId, options?: { strict: boolean }): Promise<TResult>
-
Type parameters
-
TInput = any
-
TResult = TInput
Parameters
-
typeOrToken: Type<TInput> | string | symbol
-
Optional contextId: ContextId
-
Optional options: { strict: boolean }
Returns Promise<TResult>
Protected resolvePerContext
- resolvePerContext<TInput, TResult>(typeOrToken: Type<TInput> | string | symbol, contextModule: Module, contextId: ContextId, options?: { strict: boolean }): Promise<TResult>
-
Type parameters
-
TInput = any
-
TResult = TInput
Parameters
-
typeOrToken: Type<TInput> | string | symbol
-
contextModule: Module
-
-
Optional options: { strict: boolean }
Returns Promise<TResult>