Class JacksonMcpJsonMapperSupplier

java.lang.Object
io.modelcontextprotocol.json.jackson.JacksonMcpJsonMapperSupplier
All Implemented Interfaces:
McpJsonMapperSupplier, Supplier<McpJsonMapper>

@Deprecated(forRemoval=true, since="18.0.0") public class JacksonMcpJsonMapperSupplier extends Object implements McpJsonMapperSupplier
Deprecated, for removal: This API element is subject to removal in a future version.
since 18.0.0, use JacksonMcpJsonMapperSupplier instead. Will be removed in 19.0.0.
A supplier of McpJsonMapper instances that uses the Jackson library for JSON serialization and deserialization.

This implementation provides a McpJsonMapper backed by a Jackson ObjectMapper.

  • Constructor Details

    • JacksonMcpJsonMapperSupplier

      public JacksonMcpJsonMapperSupplier()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • get

      public McpJsonMapper get()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a new instance of McpJsonMapper that uses the Jackson library for JSON serialization and deserialization.

      The returned McpJsonMapper is backed by a new instance of ObjectMapper.

      Specified by:
      get in interface Supplier<McpJsonMapper>
      Returns:
      a new McpJsonMapper instance