public class MavenVerticleFactory extends ServiceVerticleFactory
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_PROXY_SYS_PROP |
static String |
HTTPS_PROXY_SYS_PROP |
static String |
LOCAL_REPO_SYS_PROP |
static String |
REMOTE_REPOS_SYS_PROP |
static String |
REMOTE_SNAPSHOT_POLICY_SYS_PROP |
static boolean |
RESOLVE_CALLED |
Constructor and Description |
---|
MavenVerticleFactory()
Creates an instance of
MavenVerticleFactory using the system properties to initialize the ResolverOptions . |
MavenVerticleFactory(Resolver resolver)
Creates an instance of
MavenVerticleFactory with a custom Resolver . |
MavenVerticleFactory(ResolverOptions options)
Creates an instance of
MavenVerticleFactory with the given resolution options. |
Modifier and Type | Method and Description |
---|---|
Resolver |
getResolver() |
void |
init(Vertx vertx)
Initialise the factory
|
String |
prefix() |
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.
|
createVerticle, requiresResolve
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blockingCreate, close, order, removePrefix
public static final String LOCAL_REPO_SYS_PROP
public static final String REMOTE_REPOS_SYS_PROP
public static final String HTTP_PROXY_SYS_PROP
public static final String HTTPS_PROXY_SYS_PROP
public static final String REMOTE_SNAPSHOT_POLICY_SYS_PROP
public static volatile boolean RESOLVE_CALLED
public MavenVerticleFactory()
MavenVerticleFactory
using the system properties to initialize the ResolverOptions
.
It uses the default resolver implementation.public MavenVerticleFactory(ResolverOptions options)
MavenVerticleFactory
with the given resolution options.
It uses the default resolver implementation.options
- the options.public MavenVerticleFactory(Resolver resolver)
MavenVerticleFactory
with a custom Resolver
. The resolver must already be
configured.resolver
- the resolver to usepublic void init(Vertx vertx)
VerticleFactory
vertx
- The Vert.x instancepublic String prefix()
prefix
in interface VerticleFactory
prefix
in class ServiceVerticleFactory
public void resolve(String identifier, DeploymentOptions deploymentOptions, ClassLoader classLoader, Promise<String> resolution)
VerticleFactory
resolve
in interface VerticleFactory
resolve
in class ServiceVerticleFactory
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 Resolver getResolver()
Copyright © 2023 Eclipse. All rights reserved.