Class MappingJsonFactory

  • All Implemented Interfaces:
    Versioned

    public class MappingJsonFactory
    extends JsonFactory
    Sub-class of JsonFactory that will create a proper ObjectCodec to allow seamless conversions between Json content and Java objects (POJOs). The only addition to regular JsonFactory currently is that ObjectMapper is constructed and passed as the codec to use.
    • Constructor Detail

      • MappingJsonFactory

        public MappingJsonFactory()
      • MappingJsonFactory

        public MappingJsonFactory​(ObjectMapper mapper)
    • Method Detail

      • getCodec

        public final ObjectMapper getCodec()
        We'll override the method to return more specific type; co-variance helps here
        Overrides:
        getCodec in class JsonFactory
      • getFormatName

        public java.lang.String getFormatName()
        Sub-classes need to override this method (as of 1.8)
        Overrides:
        getFormatName in class JsonFactory