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

Make JsonFactory Serializable #31

Closed
cowtowncoder opened this issue Oct 5, 2012 · 1 comment
Closed

Make JsonFactory Serializable #31

cowtowncoder opened this issue Oct 5, 2012 · 1 comment

Comments

@cowtowncoder
Copy link
Member

Usually we don't care whether non-persisted objects are Serializable. But in case of JsonFactory there are reasons to do this, for certain platforms. Specifically, on mobile platforms like Android, "freezing state" may require flushing out lots of things. And re-creating those things, conversely, may be more costly than would simple de-serialization be.

To see if this could work, it would be good to see how easy it'd be to make JsonFactory (which is the entry point to core streaming api) java.io.Serializable. And if that works, continue up the stack to databinding.

@cowtowncoder
Copy link
Member Author

Implemented, added tests; works for stock standard JsonFactory with no ObjectCodec attached (that'll be second part). Needs to be done for ALL sub-classes however, to properly resolve.

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

No branches or pull requests

1 participant