Class Jackson3JsonFactory

java.lang.Object
dev.tachyonmcp.core.server.json.Jackson3JsonFactory
All Implemented Interfaces:
JsonDocumentFactory<String>, JsonSchemaFactory<String>

public final class Jackson3JsonFactory extends Object implements JsonDocumentFactory<String>, JsonSchemaFactory<String>
Jackson 3-backed JsonDocumentFactory and JsonSchemaFactory for String sources: parses the source and rejects malformed JSON before wrapping it.

Registered via ServiceLoader in META-INF/services (discovered through its public no-arg constructor, not INSTANCE — the module isn't an explicit module, so ServiceLoader never looks for a provider() factory method). For already-parsed Jackson JsonNode trees or tachyon's provider-neutral JsonObject, see JacksonNodeJsonFactory and JacksonObjectJsonFactory — a single class can't implement JsonSchemaFactory<String> and JsonSchemaFactory<JsonNode> at once, since Java forbids implementing the same generic interface twice with different type arguments.

Author:
Konstantin Pavlov