RuntimeFactoryHelper Class
Signature
export declare abstract class RuntimeFactoryHelper<T = IContainerRuntime> implements IRuntimeFactory
Implements: IRuntimeFactory
Type Parameters
Parameter | Default | Description |
---|---|---|
T | IContainerRuntime |
Properties
Property | Type | Description |
---|---|---|
IRuntimeFactory | this |
Methods
Method | Return Type | Description |
---|---|---|
hasInitialized(_runtime) | Promise<void> | |
instantiateFirstTime(_runtime) | Promise<void> | |
instantiateFromExisting(_runtime) | Promise<void> | |
instantiateRuntime(context, existing) | Promise<IRuntime> | |
preInitialize(context, existing) | Promise<IRuntime & T> |
Property Details
IRuntimeFactory
Signature
get IRuntimeFactory(): this;
Type: this
Method Details
hasInitialized
Signature
hasInitialized(_runtime: T): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
_runtime | T |
Returns
Return type: Promise<void>
instantiateFirstTime
Signature
instantiateFirstTime(_runtime: T): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
_runtime | T |
Returns
Return type: Promise<void>
instantiateFromExisting
Signature
instantiateFromExisting(_runtime: T): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
_runtime | T |
Returns
Return type: Promise<void>
instantiateRuntime
Signature
instantiateRuntime(context: IContainerContext, existing?: boolean): Promise<IRuntime>;
Parameters
Parameter | Modifiers | Type | Description |
---|---|---|---|
context | IContainerContext | ||
existing | optional | boolean |
Returns
Return type: Promise<IRuntime>
preInitialize
Signature
abstract preInitialize(context: IContainerContext, existing: boolean): Promise<IRuntime & T>;
Parameters
Parameter | Type | Description |
---|---|---|
context | IContainerContext | |
existing | boolean |
Returns
Return type: Promise<IRuntime & T>