Jackson Glossary: ObjectMapper


This is the default implementation of Module interface (see JacksonFeatureModules for more detailed description) that adds simple registration methods to cover most commonly needed operations.


   1   Version version = new Version(1, 0, 0, "SNAPSHOT"); // maven/OSGi style version
   2   SimpleModule module = new SimpleModule("MyModuleName", version);
   3   module = module.addSerializer(new MyTypeSerializer());
   4   // and so on...
   5   objectMapper.registerModule(module);

Back to Jackson Term Glossary


SimpleModule (last edited 2011-02-19 18:58:51 by TatuSaloranta)

Copyright ©2009 FasterXML, LLC