morphia icon indicating copy to clipboard operation
morphia copied to clipboard

Introduce @CodecProvider for discovery of user supplied CodecProviders

Open evanchooly opened this issue 2 years ago • 2 comments

see this discussion for context.

evanchooly avatar Jan 23 '23 02:01 evanchooly

I've been thinking about solutions to the enum-codec bug (#2264) that doesn't impact performance. (The obvious fix is to remove the built-in enum-to-string Converter, but I'm not sure about the performance impact.)

Maybe this proposed new @CodecProvider annotation could help here too: maybe the built-in converter could first check if that annotation is present for the enum -- if it is, it can just not convert that type.

eheimburg avatar Feb 20 '23 04:02 eheimburg

this will be better handled with 3.0's build-first approach

evanchooly avatar Jun 03 '23 02:06 evanchooly