Class CompositeSerdeRegistry

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

@Singleton @Primary @Internal public class CompositeSerdeRegistry extends Object implements SerdeRegistry
The default SerdeRegistry that combines multiple registries into a single registry.
Author:
Graeme Rocher
  • Constructor Details

    • CompositeSerdeRegistry

      public CompositeSerdeRegistry(SerdeRegistry... registries)
      The default constructor.
      Parameters:
      registries - The other registries
  • Method Details

    • getSerde

      @NonNull public <T> @NonNull 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