All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.tp.ke.booter.Bt Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy