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

com.simplaex.sugar.vertx.VertxHelper Maven / Gradle / Ivy

package com.simplaex.sugar.vertx;

import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import lombok.RequiredArgsConstructor;

import javax.inject.Inject;

@RequiredArgsConstructor(onConstructor = @__(@Inject))
public class VertxHelper {

  private final Vertx vertx;

  public void deployVerticle(final Class clazz, final Handler> handler) {
    vertx.deployVerticle("guice:" + clazz.getCanonicalName(), handler);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy