public class ServiceVerticleFactory extends Object implements VerticleFactory
| Constructor and Description |
|---|
ServiceVerticleFactory() |
| Modifier and Type | Method and Description |
|---|---|
Verticle |
createVerticle(String verticleName,
ClassLoader classLoader)
Create a verticle instance.
|
String |
prefix() |
boolean |
requiresResolve()
Does the factory require resolution? See
#resolve(String, DeploymentOptions, ClassLoader, Future) for more
information. |
void |
resolve(String identifier,
DeploymentOptions deploymentOptions,
ClassLoader classLoader,
Promise<String> resolution)
Some verticle factories can "resolve" the identifer to another identifier which is then used to look up the real
verticle factory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitblockingCreate, close, init, order, removePrefixpublic boolean requiresResolve()
VerticleFactory#resolve(String, DeploymentOptions, ClassLoader, Future) for more
information.requiresResolve in interface VerticleFactorypublic void resolve(String identifier, DeploymentOptions deploymentOptions, ClassLoader classLoader, Promise<String> resolution)
VerticleFactoryresolve in interface VerticleFactoryidentifier - The identifierdeploymentOptions - The deployment options - these can be changed inside the resolve method (e.g. to add an extra classpath)classLoader - The classloaderresolution - A future which will receive the result of the resolution.public String prefix()
prefix in interface VerticleFactorypublic Verticle createVerticle(String verticleName, ClassLoader classLoader) throws Exception
VerticleFactoryVerticleFactory.blockingCreate().createVerticle in interface VerticleFactoryverticleName - The verticle nameclassLoader - The class loaderExceptionCopyright © 2021 Eclipse. All rights reserved.