Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callbacks to get information about (de)serialized types #65

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ManuG85
Copy link

@ManuG85 ManuG85 commented Apr 27, 2017

Added callback properties to Settings class which get called from the ObjectSerializer before an object gets serialized or deserialized.
These callbacks can be used e.g. to log actually used types or to register types on demand. The later can be used when there are two instances of the serializer (because they are in different processes or in a client-server environment) to inform the counterpart about registrations.

Introduced a callback to get informed about a type before an instance of it gets serialized and another one to get informed about an type id before it gets used to deserialize an object.
Set before (de)serialization callbacks to collect used types.
Print the types used for serialization and the type ids used while deserializing objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant