Example usage for io.vertx.core Vertx registerVerticleFactory

List of usage examples for io.vertx.core Vertx registerVerticleFactory

Introduction

In this page you can find the example usage for io.vertx.core Vertx registerVerticleFactory.

Prototype

@GenIgnore(GenIgnore.PERMITTED_TYPE)
void registerVerticleFactory(VerticleFactory factory);

Source Link

Document

Register a VerticleFactory that can be used for deploying Verticles based on an identifier.

Usage

From source file:com.dinstone.vertx.starter.VertxHelper.java

License:Apache License

public static boolean deployVerticle(Vertx vertx, DeploymentOptions deployOptions, VerticleFactory factory,
        String verticleName) throws Exception {
    vertx.registerVerticleFactory(factory);
    try {//from w  w w.  j  av  a 2s .  co  m
        return deployVerticle(vertx, deployOptions, verticleName);
    } finally {
        vertx.unregisterVerticleFactory(factory);
    }
}

From source file:io.gravitee.gateway.standalone.vertx.VertxFactory.java

License:Apache License

@Override
public Vertx getObject() throws Exception {
    Vertx instance = Vertx.vertx();
    instance.registerVerticleFactory(graviteeVerticleFactory);
    return instance;
}