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
ModifierConstructorDescriptionprotected
JsonSerdeRegistry
(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, wait
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
Methods 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:SerdeRegistry
Obtain aSerde
for the given type.- Specified by:
getSerde
in interfaceSerdeRegistry
- Type Parameters:
T
- The generic type- Parameters:
type
- The type- Returns:
- The
Serde
-