Class EntityDecoder

  • All Implemented Interfaces:
    org.bson.codecs.Decoder<Object>

    public class EntityDecoder
    extends Object
    implements org.bson.codecs.Decoder<Object>
    Since:
    2.0
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • EntityDecoder

        protected EntityDecoder​(MorphiaCodec<?> morphiaCodec)
    • Method Detail

      • decode

        public Object decode​(org.bson.BsonReader reader,
                             org.bson.codecs.DecoderContext decoderContext)
        Specified by:
        decode in interface org.bson.codecs.Decoder<Object>
      • decodeModel

        protected void decodeModel​(org.bson.BsonReader reader,
                                   org.bson.codecs.DecoderContext decoderContext,
                                   MorphiaInstanceCreator instanceCreator,
                                   FieldModel model)
      • decodeProperties

        protected void decodeProperties​(org.bson.BsonReader reader,
                                        org.bson.codecs.DecoderContext decoderContext,
                                        MorphiaInstanceCreator instanceCreator,
                                        EntityModel classModel)
      • getCodecFromDocument

        protected org.bson.codecs.Codec<?> getCodecFromDocument​(org.bson.BsonReader reader,
                                                                boolean useDiscriminator,
                                                                String discriminatorKey,
                                                                org.bson.codecs.configuration.CodecRegistry registry,
                                                                DiscriminatorLookup discriminatorLookup,
                                                                org.bson.codecs.Codec<?> defaultCodec)