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

@PreSerialize / @PostDeserialize method annotations #2045

Open
Lilianne-Blaze opened this issue May 21, 2018 · 1 comment
Open

@PreSerialize / @PostDeserialize method annotations #2045

Lilianne-Blaze opened this issue May 21, 2018 · 1 comment
Labels
most-wanted Tag to indicate that there is heavy user +1'ing action

Comments

@Lilianne-Blaze
Copy link

Could you please consider something like @PreSerialize and @PostDeserialize method annotations?
It would be very useful for data sanitization, security/completeness checks, logging, "condensing" data (having "dense" fields used only in storage/transfer, compressed from "real" not-serializable fields before serialization and decompressed after deserialization). I know most or all of that can be done in custom serializers/deserializers, but with pre-serialize/post-deserialize methods it would be much easier both to write and maintain later.

@cowtowncoder
Copy link
Member

cowtowncoder commented May 21, 2018

@Lilianne-Blaze Idea has floated around for a while, and there might be an older issue for suggestion.
No concrete plans, although since we are slowly working towards 3.0, this would be good time to think of both exactly how API should work and how implementation may be added with minimal (ideally non-measurable) performance impact on cases where not pre-/post-processor is used.

This could belong under jackson-future-ideas, but being relatively concrete and familiar idea it's probably fine to have it here as RFE.

@cowtowncoder cowtowncoder added the 3.x Issues to be only tackled for Jackson 3.x, not 2.x label May 21, 2018
@cowtowncoder cowtowncoder added the most-wanted Tag to indicate that there is heavy user +1'ing action label Apr 2, 2020
@cowtowncoder cowtowncoder added 2.12 and removed 3.x Issues to be only tackled for Jackson 3.x, not 2.x labels May 10, 2020
@cowtowncoder cowtowncoder changed the title Request: @PreSerialize / @PostDeserialize method annotations @PreSerialize / @PostDeserialize method annotations May 10, 2020
@cowtowncoder cowtowncoder added 2.13 and removed 2.12 labels Oct 27, 2020
@cowtowncoder cowtowncoder added 2.14 and removed 2.13 labels Jul 15, 2021
@cowtowncoder cowtowncoder removed the 2.14 label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
most-wanted Tag to indicate that there is heavy user +1'ing action
Projects
None yet
Development

No branches or pull requests

2 participants