Implementations of this are responsible for creating verticle written in various different JVM languages and for other purposes.
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public void | createVerticle(String
The verticle name verticleName, ClassLoader The class loader classLoader, Promise<Callable<Verticle>> the promise to complete with the result promise)Create a verticle instance. |
| public default void | |
| public default int | |
| public String | |
| public static String | Returns: The identifier without the prefix (if it had any)the identifier identifer)Helper method to remove a prefix from an identifier string |
| close | back to summary |
|---|---|
| public default void close() Close the factory. The implementation must release all resources. | |
| createVerticle | back to summary |
|---|---|
| public void createVerticle(String verticleName, ClassLoader classLoader, Promise<Callable<Verticle>> promise) Create a verticle instance. If this method is likely to be slow (e.g. Ruby or JS verticles which might have to
start up a language engine) then make sure it is run on a worker thread by
| |
| init | back to summary |
|---|---|
| public default void init(Vertx vertx) Initialise the factory
| |
| order | back to summary |
|---|---|
| public default int order() The order of the factory. If there is more than one matching verticle they will be tried in ascending order.
| |
| prefix | back to summary |
|---|---|
public String prefix()
| |
| removePrefix | back to summary |
|---|---|
| public static String removePrefix(String identifer) Helper method to remove a prefix from an identifier string | |