Skip to main content
Version: v1

DOProviderContainerRuntimeFactory Class

Container code that provides a single RootDataObject. This data object is dynamically customized (registry and initial objects) based on the schema provided to the container runtime factory.

Signature

export declare class DOProviderContainerRuntimeFactory extends BaseContainerRuntimeFactory

Extends: BaseContainerRuntimeFactory

Constructors

Constructor Description
(constructor)(schema) Constructs a new instance of the DOProviderContainerRuntimeFactory class

Methods

Method Return Type Description
containerInitializingFirstTime(runtime) Promise<void> Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container is created. This likely includes creating any initial data stores that are expected to be there at the outset.

Constructor Details

(constructor)

Constructs a new instance of the DOProviderContainerRuntimeFactory class

Signature

constructor(schema: ContainerSchema);

Parameters

Parameter Type Description
schema ContainerSchema

Method Details

containerInitializingFirstTime

Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container is created. This likely includes creating any initial data stores that are expected to be there at the outset.

Signature

protected containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void>;

Parameters

Parameter Type Description
runtime IContainerRuntime The container runtime for the container being initialized

Returns

Return type: Promise<void>