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 mechanism for opting in custom classes to factory generation #248

Closed
wants to merge 3 commits into from

Conversation

ZacSweers
Copy link
Collaborator

@ZacSweers ZacSweers commented Jan 30, 2020

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

@ZacSweers ZacSweers closed this Mar 28, 2020
@ZacSweers ZacSweers deleted the z/exposeToFactory branch March 28, 2020 00:32
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.

Allow custom opt-in annotation for factory
1 participant