@Singleton public class JsonSerdeRegistry extends java.lang.Object implements SerdeRegistry
SerdeRegistry
that computes Serde
instances that use Jackson to JSON serialization.Modifier | Constructor and Description |
---|---|
protected |
JsonSerdeRegistry(io.micronaut.context.BeanContext beanContext)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T> org.apache.kafka.common.serialization.Serde<T> |
getSerde(java.lang.Class<T> type)
Obtain a
Serde for the given type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeserializer, getSerializer, pickDeserializer, pickSerializer
protected JsonSerdeRegistry(io.micronaut.context.BeanContext beanContext)
beanContext
- The bean contextpublic <T> org.apache.kafka.common.serialization.Serde<T> getSerde(java.lang.Class<T> type)
SerdeRegistry
Serde
for the given type.getSerde
in interface SerdeRegistry
T
- The generic typetype
- The typeSerde