Class JsonSerdeRegistry

java.lang.Object
io.micronaut.configuration.kafka.serde.JsonSerdeRegistry
All Implemented Interfaces:
SerdeRegistry, io.micronaut.core.order.Ordered

@Internal @Singleton public class JsonSerdeRegistry extends Object implements SerdeRegistry
A SerdeRegistry that computes Serde instances that use Jackson to JSON serialization.
Since:
1.0
Author:
Graeme Rocher
  • Constructor Details

    • JsonSerdeRegistry

      protected JsonSerdeRegistry(io.micronaut.context.BeanContext beanContext)
      Constructs a new instance.
      Parameters:
      beanContext - The bean context
  • Method Details

    • getSerde

      public <T> Serde<T> getSerde(Class<T> type)
      Description copied from interface: SerdeRegistry
      Obtain a Serde for the given type.
      Specified by:
      getSerde in interface SerdeRegistry
      Type Parameters:
      T - The generic type
      Parameters:
      type - The type
      Returns:
      The Serde