io.vertx.tp.plugin.mongo.MongoWall Maven / Gradle / Ivy
package io.vertx.tp.plugin.mongo;
import io.vertx.core.json.JsonObject;
import io.vertx.up.atom.Ruler;
import io.vertx.up.atom.secure.Cliff;
import io.vertx.up.eon.em.WallType;
import io.vertx.up.fn.Fn;
import io.vertx.up.log.Annal;
import io.vertx.up.uca.marshal.Transformer;
public class MongoWall implements Transformer {
private static final Annal LOGGER = Annal.get(MongoWall.class);
@Override
public Cliff transform(final JsonObject input) {
Fn.outUp(() -> Ruler.verify("wall-mongo", input), LOGGER);
final Cliff cliff = new Cliff();
cliff.setType(WallType.MONGO);
cliff.setConfig(input.getJsonObject("config"));
return cliff;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy