use of de.undercouch.bson4jackson.BsonModule in project jvm-serializers by eishay.
the class JacksonBsonDatabind method register.
public static void register(TestGroups groups) {
JsonFactory f = new BsonFactory();
ObjectMapper mapper = new ObjectMapper(f);
mapper.registerModule(new BsonModule());
groups.media.add(JavaBuiltIn.mediaTransformer, new DataBindBase<MediaContent>("bson/jackson/databind", MediaContent.class, mapper), new SerFeatures(SerFormat.BIN_CROSSLANG, SerGraph.FLAT_TREE, SerClass.CLASSES_KNOWN, ""));
}
Aggregations