Class ObjectSerializer
java.lang.Object
io.micronaut.serde.support.serializers.ObjectSerializer
- All Implemented Interfaces:
Serializer<Object>
,CustomizableSerializer<Object>
@Internal
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
ConstructorDescriptionObjectSerializer
(SerdeIntrospections introspections, io.micronaut.context.BeanContext beanContext) Deprecated, for removal: This API element is subject to removal in a future version.ObjectSerializer
(SerdeIntrospections introspections, SerdeConfiguration serdeConfiguration, SerializationConfiguration serializationConfiguration) ObjectSerializer
(SerdeIntrospections introspections, SerdeConfiguration serdeConfiguration, SerializationConfiguration serializationConfiguration, @Nullable 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, SerdeConfiguration serdeConfiguration, SerializationConfiguration serializationConfiguration) -
ObjectSerializer
public ObjectSerializer(SerdeIntrospections introspections, SerdeConfiguration serdeConfiguration, SerializationConfiguration serializationConfiguration, @Nullable @Nullable io.micronaut.context.BeanContext beanContext) -
ObjectSerializer
@Deprecated(since="2.9", forRemoval=true) public ObjectSerializer(SerdeIntrospections introspections, io.micronaut.context.BeanContext beanContext) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
introspections
- The introspectionsbeanContext
- The bean context
-
-
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
-
ObjectSerializer(SerdeIntrospections, SerdeConfiguration, SerializationConfiguration)