All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.bild.codec.DelegatingCodec Maven / Gradle / Ivy

Go to download

A very fast POJO codec for MongoDB (used in conjunction with the Mongo Java Driver) that handles generic types as well as polymorphic class hierarchies

There is a newer version: 2.8.2
Show newest version
package de.bild.codec;

import org.bson.codecs.Codec;

public interface DelegatingCodec {
    Codec getDelegate();

    default Codec unWrapRecursively() {
        Codec delegate;
        do {
            delegate =  getDelegate();
        } while (delegate instanceof DelegatingCodec);
        return delegate;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy