Package app.l2nx.gs.adapter.core.kafka
Class AdapterGson
java.lang.Object
app.l2nx.gs.adapter.core.kafka.AdapterGson
Single source of truth for the Gson used on both sides of the adapter wire —
the outbound producer (
DefaultKafkaFactory) and the inbound commands
consumer (CommandsBootstrap). Combines the NxGsonAdapters
java.time adapters with the LocalizedText flat-object adapter.
Both sides MUST share this so the wire stays symmetric: a divergence (the
consumer built a bare new GsonBuilder() while the producer registered
the Instant adapter) left BanCommand.expiresAt
decoding via Gson's reflective adapter, which fails on JDK 16+ with
"Failed making field java.time.Instant#seconds accessible".
-
Method Summary
-
Method Details
-
create
public static com.google.gson.Gson create()
-