public class GroovyVerticleFactory extends Object implements VerticleFactory
Constructor and Description |
---|
GroovyVerticleFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the factory.
|
void |
createVerticle(String verticleName,
ClassLoader classLoader,
Promise<Callable<Verticle>> promise)
Create a verticle instance.
|
void |
init(Vertx vertx)
Initialise the factory
|
String |
prefix() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
order, removePrefix
public void init(Vertx vertx)
VerticleFactory
init
in interface VerticleFactory
vertx
- The Vert.x instancepublic String prefix()
prefix
in interface VerticleFactory
public void createVerticle(String verticleName, ClassLoader classLoader, Promise<Callable<Verticle>> promise)
VerticleFactory
Vertx.executeBlocking(io.vertx.core.Handler<io.vertx.core.Promise<T>>, boolean, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
.createVerticle
in interface VerticleFactory
verticleName
- The verticle nameclassLoader
- The class loaderpromise
- the promise to complete with the resultpublic void close()
VerticleFactory
close
in interface VerticleFactory
Copyright © 2024 Eclipse. All rights reserved.