List of usage examples for io.vertx.core VertxOptionsConverter fromJson
static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, VertxOptions obj)
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; }