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

de.bild.codec.CodecResolver 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 java.lang.reflect.Type;

/**
 * This interface can be used to add special handling pojo of certain types.
 * Simply register a CodecResolver when you build the {@link PojoCodecProvider}
 */
public interface CodecResolver {
    /**
     *
     * @param typeCodecRegistry codec registry for any type
     * @param type the type to be handled
     * @return null, if resolver cannot handle type or a codec that is able to handle the type
     */
    ReflectionCodec getCodec(Type type, TypeCodecRegistry typeCodecRegistry);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy