io.vertx.tp.ke.booter.Bt Maven / Gradle / Ivy
package io.vertx.tp.ke.booter;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import java.util.List;
/*
* Split booter for some divide application of tool
* 1) Loader
*/
public class Bt {
public static Vertx getVertx() {
return BtVertx.getVertx();
}
public static void importSyncs(final String folder) {
BtLoader.importSyncs(folder);
}
public static void importSync(final String filename) {
BtLoader.importSync(filename, handler -> BtLoader.asyncOut(handler.result()));
}
public static void importSync(final String filename, final Handler> callback) {
BtLoader.importSync(filename, callback);
}
public static void importSyncs(final String folder, final Handler>> callback) {
BtLoader.importSyncs(folder, callback);
}
}