BAEL-702 - Intro to Vert.x formatting changes
This commit is contained in:
parent
c071c59ada
commit
5294e7d425
@ -10,6 +10,11 @@ import io.vertx.core.Vertx;
|
|||||||
public class HelloVerticle extends AbstractVerticle {
|
public class HelloVerticle extends AbstractVerticle {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(HelloVerticle.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(HelloVerticle.class);
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Vertx vertx = Vertx.vertx();
|
||||||
|
vertx.deployVerticle(new HelloVerticle());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(Future<Void> future) {
|
public void start(Future<Void> future) {
|
||||||
LOGGER.info("Welcome to Vertx");
|
LOGGER.info("Welcome to Vertx");
|
||||||
@ -19,10 +24,5 @@ public class HelloVerticle extends AbstractVerticle {
|
|||||||
public void stop() {
|
public void stop() {
|
||||||
LOGGER.info("Shutting down application");
|
LOGGER.info("Shutting down application");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
Vertx vertx = Vertx.vertx();
|
|
||||||
vertx.deployVerticle(new HelloVerticle());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user