Class ScriptVerticle

java.lang.Object
io.vertx.core.AbstractVerticle
io.vertx.lang.groovy.ScriptVerticle
All Implemented Interfaces:
Deployable, Verticle

public class ScriptVerticle extends AbstractVerticle
A Vert.x native verticle wrapping a Groovy script, the script will be executed when the Verticle starts. When the script defines a no arg accessible vertxStop method, this method will be invoked when the verticle stops. Before the script starts the following objects are bound in the script binding:
  • vertx: the Vertx object
  • deploymentID: the deploymentID of this Verticle
  • config: the Verticle config as a Map<String, Object>
Author:
Julien Viet