rharter / auto-value-gson

AutoValue Extension to add Gson De/Serializer support
Apache License 2.0
603 stars 103 forks source link

Add mechanism for opting in custom classes to factory generation #248

Closed ZacSweers closed 4 years ago

ZacSweers commented 4 years ago

This allows non-autovalue/non-extension-using classes to opt in to being picked up by the factory, which is a little more generalized from the extension now that it's public.

One open question - do we want to add a sibling mechanism here to suppress generation of the type adapter in autovalue classes if they expose a json adapter method that's just for the factory but returns a handwritten adapter?

Resolves #245