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
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionCompositeSerdeRegistry(SerdeRegistry... registries) The default constructor. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.order.Ordered
getOrderMethods inherited from interface SerdeRegistry
getDeserializer, getSerializer, pickDeserializer, pickSerializer
-
Constructor Details
-
CompositeSerdeRegistry
The default constructor.- Parameters:
registries- The other registries
-
-
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
-