Package dev.morphia.mapping.codec.pojo
Class LifecycleEncoder
- java.lang.Object
-
- dev.morphia.mapping.codec.pojo.EntityEncoder
-
- dev.morphia.mapping.codec.pojo.LifecycleEncoder
-
- All Implemented Interfaces:
org.bson.codecs.Encoder<Object>
public class LifecycleEncoder extends EntityEncoder
- Since:
- 2.2
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Field Summary
-
Fields inherited from class dev.morphia.mapping.codec.pojo.EntityEncoder
OBJECT_ID_GENERATOR
-
-
Constructor Summary
Constructors Constructor Description LifecycleEncoder(MorphiaCodec<T> morphiaCodec)
Creates a new encoder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(org.bson.BsonWriter writer, Object value, org.bson.codecs.EncoderContext encoderContext)
-
Methods inherited from class dev.morphia.mapping.codec.pojo.EntityEncoder
encodeDiscriminator, encodeIdProperty, encodeValue, getEncoderClass, getMorphiaCodec, writeValue
-
-
-
-
Constructor Detail
-
LifecycleEncoder
public LifecycleEncoder(MorphiaCodec<T> morphiaCodec)
Creates a new encoder- Type Parameters:
T
- the type- Parameters:
morphiaCodec
- the codec
-
-
Method Detail
-
encode
public void encode(org.bson.BsonWriter writer, Object value, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<Object>
- Overrides:
encode
in classEntityEncoder
-
-