io.vertx.up.uca.marshal.VertxStrada Maven / Gradle / Ivy
package io.vertx.up.uca.marshal;
import io.vertx.core.VertxOptions;
import io.vertx.core.json.JsonObject;
import io.vertx.up.fn.Fn;
import io.vertx.up.log.Annal;
import io.vertx.up.uca.options.NodeVisitor;
public class VertxStrada implements Transformer {
private static final Annal LOGGER = Annal.get(VertxStrada.class);
@Override
public VertxOptions transform(final JsonObject input) {
final JsonObject config = input.getJsonObject(NodeVisitor.YKEY_OPTIONS, null);
return Fn.getSemi(null == config, LOGGER,
VertxOptions::new,
() -> new VertxOptions(config));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy