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​

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

Methods​

MethodReturn TypeDescription
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​

ParameterTypeDescription
schemaContainerSchema

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​

ParameterTypeDescription
runtimeIContainerRuntimeThe container runtime for the container being initialized

Returns​

Return type: Promise<void>