org.codehaus.jackson.map
Class MappingJsonFactory

java.lang.Object
  extended by org.codehaus.jackson.JsonFactory
      extended by org.codehaus.jackson.map.MappingJsonFactory

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.


Field Summary
 
Fields inherited from class org.codehaus.jackson.JsonFactory
_objectCodec, _rootByteSymbols, _rootCharSymbols
 
Constructor Summary
MappingJsonFactory()
           
MappingJsonFactory(ObjectMapper mapper)
           
 
Method Summary
 ObjectMapper getCodec()
          We'll override the method to return more specific type; co-variance helps here
 
Methods inherited from class org.codehaus.jackson.JsonFactory
_createContext, _getBufferRecycler, _optimizedStreamFromURL, configure, configure, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, disable, disable, disableGeneratorFeature, disableParserFeature, enable, enable, enableGeneratorFeature, enableParserFeature, isEnabled, isEnabled, isGeneratorFeatureEnabled, isParserFeatureEnabled, setCodec, setGeneratorFeature, setParserFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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