Class DefaultObjectMapperFactory

    • Constructor Detail

      • DefaultObjectMapperFactory

        public DefaultObjectMapperFactory()
        Construct.
    • Method Detail

      • newObjectMapper

        public com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
        Specified by:
        newObjectMapper in interface ObjectMapperFactory
        Returns:
        new object mapper instance
      • newModule

        protected com.fasterxml.jackson.databind.Module newModule()
        Returns:
        new mapper module
      • addSerializer

        protected com.fasterxml.jackson.databind.Module addSerializer​(com.fasterxml.jackson.databind.module.SimpleModule module)
        adds custom serializers to given module
        Parameters:
        module - the module to extend
        Returns:
        module instance for chaining
      • configure

        protected com.fasterxml.jackson.databind.ObjectMapper configure​(com.fasterxml.jackson.databind.ObjectMapper mapper)
        configures given object mapper instance.
        Parameters:
        mapper - the object to configure
        Returns:
        mapper instance for chaining