Class 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.
    • 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 interface org.bson.codecs.Encoder<Object>
        Overrides:
        encode in class EntityEncoder