Package io.micronaut.serde
Interface SerdeRegistry
- All Superinterfaces:
io.micronaut.core.convert.ConversionServiceProvider
,DeserializerLocator
,NamingStrategyLocator
,SerializerLocator
- All Known Implementing Classes:
DefaultSerdeRegistry
public interface SerdeRegistry
extends SerializerLocator, DeserializerLocator, NamingStrategyLocator, io.micronaut.core.convert.ConversionServiceProvider
Represents a registry where specific serializers can be looked up.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull SerdeRegistry
cloneWithConfiguration
(@Nullable SerdeConfiguration configuration, @Nullable SerializationConfiguration serializationConfiguration, @Nullable DeserializationConfiguration deserializationConfiguration) Optional feature.newDecoderContext
(@Nullable Class<?> view) Creates a new decoder context.newEncoderContext
(@Nullable Class<?> view) Creates a new encoder context.Methods inherited from interface io.micronaut.core.convert.ConversionServiceProvider
getConversionService
Methods inherited from interface io.micronaut.serde.DeserializerLocator
findCustomDeserializer, findDeserializer, findDeserializer, getDeserializableSubtypes
Methods inherited from interface io.micronaut.serde.NamingStrategyLocator
findNamingStrategy
Methods inherited from interface io.micronaut.serde.SerializerLocator
findCustomSerializer, findSerializer, findSerializer
-
Method Details
-
cloneWithConfiguration
@NonNull default @NonNull SerdeRegistry cloneWithConfiguration(@Nullable @Nullable SerdeConfiguration configuration, @Nullable @Nullable SerializationConfiguration serializationConfiguration, @Nullable @Nullable DeserializationConfiguration deserializationConfiguration) Optional feature. Create a newSerdeRegistry
with the given configuration values. Anull
parameter indicates the old configuration should be used.- Parameters:
configuration
- TheSerdeConfiguration
serializationConfiguration
- TheSerializationConfiguration
deserializationConfiguration
- TheDeserializationConfiguration
- Returns:
- A new
SerdeRegistry
with the updated config - Since:
- 2.7.0
-
newEncoderContext
Creates a new encoder context.- Parameters:
view
- The view- Returns:
- The encoder context
-
newDecoderContext
Creates a new decoder context.- Parameters:
view
- The view- Returns:
- The decoder context
-