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
ConstructorDescriptionCompositeSerdeRegistry
(SerdeRegistry... registries) The default constructor. -
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
-
CompositeSerdeRegistry
The default constructor.- Parameters:
registries
- The other registries
-
-
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
-