@Singleton @Primary public class CompositeSerdeRegistry extends Object implements SerdeRegistry
SerdeRegistry
that combines multiple registries into a single registry.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
CompositeSerdeRegistry(SerdeRegistry... registries)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> Serde<T> |
getSerde(Class<T> type)
Obtain a
Serde for the given type. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeserializer, getSerializer, pickDeserializer, pickSerializer
public CompositeSerdeRegistry(SerdeRegistry... registries)
registries
- The other registries@Nonnull public <T> Serde<T> getSerde(Class<T> type)
SerdeRegistry
Serde
for the given type.getSerde
in interface SerdeRegistry
T
- The generic typetype
- The typeSerde