Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-164

Support more configuration options in MongoItemReader and MongoItemWriter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.4.0.Final
    • 1.1.0.Final
    • jberet-support
    • 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)

              jperkins-rhn James Perkins
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: