Class ObjectMapperFactory


  • public final class ObjectMapperFactory
    extends java.lang.Object
    The factory class ObjectMapperFactory for creating ObjectMapper objects
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
      Factory method for create a new ObjectMapper
      static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper​(boolean newMapper)
      Factory method for create a new ObjectMapper.
      static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper​(com.fasterxml.jackson.core.JsonFactory jsonFactory)
      Factory method for create a new ObjectMapper with the given JsonFactory
      static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper​(java.util.Map<com.fasterxml.jackson.core.JsonParser.Feature,​java.lang.Boolean> features)
      Factory method for create a new ObjectMapper with the given features
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
        Factory method for create a new ObjectMapper
        Returns:
        the new ObjectMapper
      • newObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper​(boolean newMapper)
        Factory method for create a new ObjectMapper. If the given flag is true a new ObjectMapper will be created otherwise the default ObjectMapper will be taken.
        Parameters:
        newMapper - flag that indicates if a new ObjectMapper should be created, if true a new ObjectMapper will be created otherwise the default ObjectMapper from this class will be returned.
        Returns:
        the new ObjectMapper
      • newObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper​(java.util.Map<com.fasterxml.jackson.core.JsonParser.Feature,​java.lang.Boolean> features)
        Factory method for create a new ObjectMapper with the given features
        Parameters:
        features - the features for the new ObjectMapper
        Returns:
        the new ObjectMapper
      • newObjectMapper

        public static com.fasterxml.jackson.databind.ObjectMapper newObjectMapper​(com.fasterxml.jackson.core.JsonFactory jsonFactory)
        Factory method for create a new ObjectMapper with the given JsonFactory
        Parameters:
        jsonFactory - the JsonFactory object
        Returns:
        the new ObjectMapper