Example usage for io.vertx.core VertxOptionsConverter fromJson

List of usage examples for io.vertx.core VertxOptionsConverter fromJson

Introduction

In this page you can find the example usage for io.vertx.core VertxOptionsConverter fromJson.

Prototype

static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, VertxOptions obj) 

Source Link

Usage

From source file:org.jspare.forvertx.VertxManagerImpl.java

License:Apache License

@Override
@SneakyThrows(IOException.class)
public VertxManager loadVertxOptions(String path) {
    String content = my(ResourceLoader.class).readFileToString(path);
    if (StringUtils.isNotEmpty(content)) {

        VertxOptionsConverter.fromJson(io.vertx.core.json.Json.decodeValue(content, JsonObject.class),
                vertxOptions);//from   ww  w  .j  a  v  a 2  s .com
    }
    return this;
}