Skip to main content

DataObjectFactory Class

DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects. It facilitates DataObject's features (such as its shared directory) by ensuring relevant shared objects etc are available to the factory.

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 declare class DataObjectFactory<TObj extends DataObject<I>, I extends DataObjectTypes = DataObjectTypes> extends PureDataObjectFactory<TObj, I>

Extends: PureDataObjectFactory<TObj, I>

Type Parameters

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

Constructors

ConstructorAlertsDescription
(constructor)(type, ctor, sharedObjects, optionalProviders, registryEntries, runtimeFactory)BetaConstructs a new instance of the DataObjectFactory class
(constructor)(props)BetaConstructs a new instance of the DataObjectFactory class

Constructor Details

(constructor)

Constructs a new instance of the DataObjectFactory class

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

constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects?: readonly IChannelFactory[], optionalProviders?: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);

Remarks

Use the props object based constructor instead. No new features will be added to this constructor, and it will eventually be deprecated and removed.

Parameters

ParameterModifiersTypeDescription
typestring
ctornew (props: IDataObjectProps<I>) => TObj
sharedObjectsoptionalreadonly IChannelFactory[]
optionalProvidersoptionalFluidObjectSymbolProvider<I["OptionalProviders"]>
registryEntriesoptionalNamedFluidDataStoreRegistryEntries
runtimeFactoryoptionaltypeof FluidDataStoreRuntime

(constructor)

Constructs a new instance of the DataObjectFactory class

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

constructor(props: DataObjectFactoryProps<TObj, I>);

Parameters

ParameterTypeDescription
propsDataObjectFactoryProps<TObj, I>