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

Add support for skippable (de)serialization handlers #1238

Merged
merged 3 commits into from
Jul 13, 2020

Conversation

bobvandevijver
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Doc updated yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT

I need to be able to choose between my handler and the default serializer implementation depending on the current deserialization depth, but I couldn't find any way to do so. Therefor, I added support for skippable handlers, by simply throwing a SkipHandlerException to do so.

This PR is an updated version of #1236, created as separate PR to be able to illustrate the differences between both easily and to be able to choose which one is more suitable. I did not adjust the test method implementations at all compared to the first PR, only the implementation of the TestSubscriber used in the tests has been adjusted to match throw the required exception.

@goetas I hope this is what you meant with your comment, otherwise, please let me know!

@bobvandevijver bobvandevijver force-pushed the configurable-handlers-v2 branch from 6e9c51e to e05d1d7 Compare July 12, 2020 13:06
@goetas goetas merged commit 40b5c2b into schmittjoh:master Jul 13, 2020
@goetas
Copy link
Collaborator

goetas commented Jul 13, 2020

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants