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 support for FormatFeature extension, for format-specifc Enum-backed parser/generator options #196

Closed
cowtowncoder opened this issue May 27, 2015 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

Beyond 2.6 it would be good to be able to support format-specific features in generic manner, specifically so that jackson-databind could pass opaque settings. These settings need to be passed to underlying parser (JsonParser) and generator (JsonGenerator) implementations; and due to peculiarities of Java Enums, we can not use base class or enum. Further, although most usage is via databind package, some formats do not depend on it.... so the base interface needs to be within jackson-core.

To that end, it makes sense to:

  1. Add new FormatFeature interface, with basic methods for accessing mask, default state
  2. Add methods in JsonFactory for accessing compatible feature types (for validating type match)
  3. Add placeholder methods in JsonParser for changing feature states
  4. Add placeholder methods in JsonGenerator for changing feature states

Actual full implementations for data format modules may wait until 2.7, although partial implementations may added in 2.6 as long as tight coupling to core 2.6 is avoided.

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