Add support for FormatFeature
extension, for format-specifc Enum-backed parser/generator options
#196
Milestone
FormatFeature
extension, for format-specifc Enum-backed parser/generator options
#196
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 withinjackson-core
.To that end, it makes sense to:
FormatFeature
interface, with basic methods for accessing mask, default stateJsonFactory
for accessing compatible feature types (for validating type match)JsonParser
for changing feature statesJsonGenerator
for changing feature statesActual 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.
The text was updated successfully, but these errors were encountered: