Class JsonSerdeRegistry
java.lang.Object
io.micronaut.configuration.kafka.serde.JsonSerdeRegistry
- All Implemented Interfaces:
SerdeRegistry,io.micronaut.core.order.Ordered
A
SerdeRegistry that computes Serde instances that use Jackson to JSON serialization.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsonSerdeRegistry(io.micronaut.context.BeanContext beanContext) Constructs a new instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface io.micronaut.configuration.kafka.serde.SerdeRegistry
getDeserializer, getSerializer, pickDeserializer, pickSerializer
-
Constructor Details
-
JsonSerdeRegistry
protected JsonSerdeRegistry(io.micronaut.context.BeanContext beanContext) Constructs a new instance.- Parameters:
beanContext- The bean context
-
-
Method Details
-
getSerde
Description copied from interface:SerdeRegistryObtain aSerdefor the given type.- Specified by:
getSerdein interfaceSerdeRegistry- Type Parameters:
T- The generic type- Parameters:
type- The type- Returns:
- The
Serde
-