public interface VerticleFactory
Implementations of this are responsible for creating verticle written in various different JVM languages and for other purposes.
Modifier and Type | Method and Description |
---|---|
default void |
close()
Close the factory.
|
void |
createVerticle(String verticleName,
ClassLoader classLoader,
Promise<Callable<Verticle>> promise)
Create a verticle instance.
|
default void |
init(Vertx vertx)
Initialise the factory
|
default int |
order()
The order of the factory.
|
String |
prefix() |
static String |
removePrefix(String identifer)
Helper method to remove a prefix from an identifier string
|
static String removePrefix(String identifer)
identifer
- the identifierdefault int order()
default void init(Vertx vertx)
vertx
- The Vert.x instancedefault void close()
String prefix()
void createVerticle(String verticleName, ClassLoader classLoader, Promise<Callable<Verticle>> promise)
Vertx.executeBlocking(io.vertx.core.Handler<io.vertx.core.Promise<T>>, boolean, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
.verticleName
- The verticle nameclassLoader
- The class loaderpromise
- the promise to complete with the resultCopyright © 2024 Eclipse. All rights reserved.