@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, waitgetDeserializer, getSerializer, pickDeserializer, pickSerializerpublic CompositeSerdeRegistry(SerdeRegistry... registries)
registries - The other registries@Nonnull public <T> Serde<T> getSerde(Class<T> type)
SerdeRegistrySerde for the given type.getSerde in interface SerdeRegistryT - The generic typetype - The typeSerde