-
Enhancement
-
Resolution: Unresolved
-
Major
-
1.1.0.Final
-
None
org.mongojack.JacksonDBCollection has 2 serialization/deserialization features that should be configurable in MongoItemReader and MongoItemWriter:
org.mongojack.JacksonDBCollection.Feature#USE_STREAM_DESERIALIZATION
org.mongojack.JacksonDBCollection.Feature#USE_STREAM_SERIALIZATION
In addition, we should also be able to configure jackson ObjectMapper, supporting all the jackson usual configuration options/features.
If the MongoItemReader or MongoItemWriter don't have any configuration options for jackson ObjectMapper, then we should use the default ObjectMapper in org.mongojack.JacksonDBCollection (calling org.mongojack.JacksonDBCollection#wrap(com.mongodb.DBCollection, java.lang.Class<T>, java.lang.Class<K>)
Otherwise, we should instantiate jackson ObjectMapper with jackson ObjectMapper features and options, and pass that to org.mongojack.JacksonDBCollection (use org.mongojack.JacksonDBCollection#wrap(com.mongodb.DBCollection, java.lang.Class<T>, java.lang.Class<K>, com.fasterxml.jackson.databind.ObjectMapper)
- relates to
-
JBERET-160 Add support for registering Jackson modules instead of custom serializers and deserializers
-
- Resolved
-