Class ObjectSerializer
java.lang.Object
io.micronaut.serde.support.serializers.ObjectSerializer
- All Implemented Interfaces:
Serializer<Object>
,CustomizableSerializer<Object>
@Internal
@Singleton
@Primary
public final class ObjectSerializer
extends Object
implements CustomizableSerializer<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.serde.Serializer
Serializer.EncoderContext
-
Constructor Summary
ConstructorsConstructorDescriptionObjectSerializer
(SerdeIntrospections introspections, SerializationConfiguration configuration, io.micronaut.context.BeanContext beanContext) -
Method Summary
Modifier and TypeMethodDescriptioncreateSpecific
(@NonNull Serializer.EncoderContext encoderContext, io.micronaut.core.type.Argument<?> type) Create a more specific serializer for the given definition.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.serde.util.CustomizableSerializer
isAbsent, isEmpty, serialize
-
Constructor Details
-
ObjectSerializer
public ObjectSerializer(SerdeIntrospections introspections, SerializationConfiguration configuration, io.micronaut.context.BeanContext beanContext)
-
-
Method Details
-
createSpecific
public Serializer<Object> createSpecific(@NonNull @NonNull Serializer.EncoderContext encoderContext, io.micronaut.core.type.Argument<?> type) throws SerdeException Description copied from interface:Serializer
Create a more specific serializer for the given definition.- Specified by:
createSpecific
in interfaceSerializer<Object>
- Parameters:
encoderContext
- The encoder contexttype
- The type definition including any annotation metadata- Returns:
- The more specific serializer
- Throws:
SerdeException
-