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

de.bild.codec.annotations.CodecToBeUsed 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

The newest version!
package de.bild.codec.annotations;

import org.bson.codecs.Codec;

import java.lang.annotation.*;

@Documented
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface CodecToBeUsed {
    // a Class implementing Codec that needs to provide a constructor with the following signature
    // Constructor(TypeCodecRegistry typeCodecRegistry)
    Class> value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy