Skip to main content

BinarySerializationRegistry

BinarySerializationRegistry

Contains serializers for various data types as well as data upgraders which enable support for serialization format changes

Kind: global class

binarySerializationRegistry.isBinarySerializationRegistry : boolean

Kind: instance property of BinarySerializationRegistry
Read only: true

binarySerializationRegistry.registerAdapters(adapters)

Kind: instance method of BinarySerializationRegistry

ParamType
adaptersArray.<BinaryClassSerializationAdapter>

binarySerializationRegistry.registerAdapter([className], adapter) ⇒ boolean

Kind: instance method of BinarySerializationRegistry

ParamType
[className]string
adapterBinaryClassSerializationAdapter

binarySerializationRegistry.removeAdapter(className) ⇒ BinaryClassSerializationAdapter

Kind: instance method of BinarySerializationRegistry

ParamType
classNamestring

binarySerializationRegistry.getAdapter(className) ⇒ BinaryClassSerializationAdapter | undefined

Kind: instance method of BinarySerializationRegistry

ParamType
classNamestring

binarySerializationRegistry.registerUpgrader(className, upgrader) ⇒ boolean

Kind: instance method of BinarySerializationRegistry

ParamType
classNamestring
upgraderBinaryClassUpgrader

binarySerializationRegistry.getUpgradersChain(className, startVersion, goalVersion) ⇒ Array.<BinaryClassUpgrader> | null

Kind: instance method of BinarySerializationRegistry
Returns: Array.<BinaryClassUpgrader> | null - sequential shortest chain of upgraders or null if no valid chain exists

ParamType
classNamestring
startVersionnumber
goalVersionnumber