Skip to main content

DataObjectFactoryProps Interface

Represents the properties required to create a DataObjectFactory. This includes the type identifier, constructor, shared objects, optional providers, registry entries, and the runtime class to use for the data object.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/aqueduct/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface DataObjectFactoryProps<TObj extends PureDataObject<I>, I extends DataObjectTypes = DataObjectTypes>

Type Parameters​

ParameterConstraintDefaultDescription
TObjPureDataObject<I>DataObject (concrete type)
IDataObjectTypesDataObjectTypesThe input types for the DataObject

Properties​

PropertyAlertsModifiersTypeDescription
ctorBetareadonlynew (props: IDataObjectProps<I>) => TObjThe constructor for the data object.
optionalProvidersBetaoptional, readonlyFluidObjectSymbolProvider<I["OptionalProviders"]>Optional providers for dependency injection.
policiesBetaoptional, readonlyPartial<IFluidDataStorePolicies>Optional policies that can be applied to the DataObject. These policies define specific behaviors or constraints for the data object.
registryEntriesBetaoptional, readonlyNamedFluidDataStoreRegistryEntriesRegistry entries for named data stores.
runtimeClassBetaoptional, readonlytypeof FluidDataStoreRuntimeThe runtime class to use for the data object.
sharedObjectsBetaoptional, readonlyreadonly IChannelFactory[]The shared objects (DDSes) to be registered with the data object.
typeBetareadonlystringThe type identifier for the data object factory.

Property Details​

ctor​

The constructor for the data object.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly ctor: new (props: IDataObjectProps<I>) => TObj;

Type: new (props: IDataObjectProps<I>) => TObj

optionalProviders​

Optional providers for dependency injection.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly optionalProviders?: FluidObjectSymbolProvider<I["OptionalProviders"]>;

Type: FluidObjectSymbolProvider<I["OptionalProviders"]>

policies​

Optional policies that can be applied to the DataObject. These policies define specific behaviors or constraints for the data object.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly policies?: Partial<IFluidDataStorePolicies>;

Type: Partial<IFluidDataStorePolicies>

registryEntries​

Registry entries for named data stores.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly registryEntries?: NamedFluidDataStoreRegistryEntries;

Type: NamedFluidDataStoreRegistryEntries

runtimeClass​

The runtime class to use for the data object.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly runtimeClass?: typeof FluidDataStoreRuntime;

Type: typeof FluidDataStoreRuntime

sharedObjects​

The shared objects (DDSes) to be registered with the data object.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly sharedObjects?: readonly IChannelFactory[];

Type: readonly IChannelFactory[]

type​

The type identifier for the data object factory.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

readonly type: string;

Type: string