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, wait
blockingCreate, close, init, order, removePrefix
public boolean requiresResolve()
VerticleFactory
#resolve(String, DeploymentOptions, ClassLoader, Future)
for more
information.requiresResolve
in interface VerticleFactory
public void resolve(String identifier, DeploymentOptions deploymentOptions, ClassLoader classLoader, Promise<String> resolution)
VerticleFactory
resolve
in interface VerticleFactory
identifier
- 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 VerticleFactory
public Verticle createVerticle(String verticleName, ClassLoader classLoader) throws Exception
VerticleFactory
VerticleFactory.blockingCreate()
.createVerticle
in interface VerticleFactory
verticleName
- The verticle nameclassLoader
- The class loaderException
Copyright © 2023 Eclipse. All rights reserved.