Class JacksonMcpJsonMapperSupplier
java.lang.Object
io.modelcontextprotocol.json.jackson.JacksonMcpJsonMapperSupplier
- All Implemented Interfaces:
McpJsonMapperSupplier,Supplier<McpJsonMapper>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Returns a new instance ofMcpJsonMapperthat uses the Jackson library for JSON serialization and deserialization.
-
Constructor Details
-
JacksonMcpJsonMapperSupplier
public JacksonMcpJsonMapperSupplier()
-
-
Method Details
-
get
Returns a new instance ofMcpJsonMapperthat uses the Jackson library for JSON serialization and deserialization.The returned
McpJsonMapperis backed by a new instance ofObjectMapper.- Specified by:
getin interfaceSupplier<McpJsonMapper>- Returns:
- a new
McpJsonMapperinstance
-