Class ConfiguredObjectMapper


  • public class ConfiguredObjectMapper
    extends Object
    A wrapper around an ObjectMapper with a frozen configuration. This exposes a subset of ObjectMapper methods, it doesn't allow modifications to configuration.

    The created ObjectMapper also automatically installs some modules that are common to SPI code.

    • Method Detail

      • reader

        public com.fasterxml.jackson.databind.ObjectReader reader()
        Returns an ObjectReader, this has an immutable configuration.
        Returns:
        a reader
      • writer

        public com.fasterxml.jackson.databind.ObjectWriter writer()
        Returns an ObjectWriter, this has an immutable configuration.
        Returns:
        a writer