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
- .registerAdapters(adapters)
- .registerAdapter([className], adapter) ⇒
boolean
- .removeAdapter(className) ⇒
BinaryClassSerializationAdapter
- .getAdapter(className) ⇒
BinaryClassSerializationAdapter
|undefined
- .registerUpgrader(className, upgrader) ⇒
boolean
- .getUpgradersChain(className, startVersion, goalVersion) ⇒
Array.<BinaryClassUpgrader>
|null
- .isBinarySerializationRegistry :
binarySerializationRegistry.isBinarySerializationRegistry : boolean
Kind: instance property of BinarySerializationRegistry
Read only: true
binarySerializationRegistry.registerAdapters(adapters)
Kind: instance method of BinarySerializationRegistry
Param | Type |
---|---|
adapters | Array.<BinaryClassSerializationAdapter> |
binarySerializationRegistry.registerAdapter([className], adapter) ⇒ boolean
Kind: instance method of BinarySerializationRegistry
Param | Type |
---|---|
[className] | string |
adapter | BinaryClassSerializationAdapter |
binarySerializationRegistry.removeAdapter(className) ⇒ BinaryClassSerializationAdapter
Kind: instance method of BinarySerializationRegistry
Param | Type |
---|---|
className | string |
binarySerializationRegistry.getAdapter(className) ⇒ BinaryClassSerializationAdapter
| undefined
Kind: instance method of BinarySerializationRegistry
Param | Type |
---|---|
className | string |
binarySerializationRegistry.registerUpgrader(className, upgrader) ⇒ boolean
Kind: instance method of BinarySerializationRegistry
Param | Type |
---|---|
className | string |
upgrader | BinaryClassUpgrader |
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
Param | Type |
---|---|
className | string |
startVersion | number |
goalVersion | number |