Package org.iworkz.genesis.vertx.maven
Class GenesisMavenVerticleFactory
java.lang.Object
io.vertx.service.ServiceVerticleFactory
io.vertx.maven.MavenVerticleFactory
org.iworkz.genesis.vertx.maven.GenesisMavenVerticleFactory
- All Implemented Interfaces:
io.vertx.core.spi.VerticleFactory
public class GenesisMavenVerticleFactory
extends io.vertx.maven.MavenVerticleFactory
based on the implementation of io.vertx.maven.MavenVerticleFactory
-
Field Summary
Fields inherited from class io.vertx.maven.MavenVerticleFactory
HTTP_PROXY_SYS_PROP, HTTPS_PROXY_SYS_PROP, LOCAL_REPO_SYS_PROP, REMOTE_REPOS_SYS_PROP, REMOTE_SNAPSHOT_POLICY_SYS_PROP, RESOLVE_CALLED -
Constructor Summary
ConstructorsConstructorDescriptionGenesisMavenVerticleFactory(io.vertx.maven.Resolver resolver) GenesisMavenVerticleFactory(io.vertx.maven.ResolverOptions options) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]checksumOf(File file) protected voidcomputeDigest(File file, MessageDigest md) protected URLClassLoadercreateClassLoader(List<org.eclipse.aether.artifact.Artifact> artifacts, ClassLoader parentClassLoader) protected MavenServiceOptionscreateServiceOptions(String coordsString, String identifierNoPrefix, String serviceName, ClassLoader classLoader) protected MavenServiceOptionscreateServiceOptions(URLClassLoader urlClassLoader, File file, byte[] checksum, String identifierNoPrefix, String serviceName) voidcreateVerticle(String verticleName, io.vertx.core.DeploymentOptions deploymentOptions, ClassLoader classLoader, io.vertx.core.Promise<Callable<io.vertx.core.Verticle>> promise) protected io.vertx.core.AbstractVerticlecreateWrapperVerticle(String fullQualifiedVerticleName, MavenServiceOptions serviceOptions, io.vertx.core.DeploymentOptions deploymentOptions) protected Throwableprotected StringgetMainVerticleNameFromManifest(File file, String identifierNoPrefix) protected io.vertx.core.json.JsonObjectgetServiceDescriptor(ClassLoader classLoader, String serviceName) voidinit(io.vertx.core.Vertx vertx) prefix()protected io.vertx.core.json.JsonObjectreadDescriptor(InputStream is, String descriptorFileName) protected List<org.eclipse.aether.artifact.Artifact>resolveArtifacts(String coordsString) Methods inherited from class io.vertx.maven.MavenVerticleFactory
getResolverMethods inherited from class io.vertx.service.ServiceVerticleFactory
createVerticleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.core.spi.VerticleFactory
close, order
-
Constructor Details
-
GenesisMavenVerticleFactory
public GenesisMavenVerticleFactory() -
GenesisMavenVerticleFactory
public GenesisMavenVerticleFactory(io.vertx.maven.ResolverOptions options) -
GenesisMavenVerticleFactory
public GenesisMavenVerticleFactory(io.vertx.maven.Resolver resolver)
-
-
Method Details
-
init
public void init(io.vertx.core.Vertx vertx) - Specified by:
initin interfaceio.vertx.core.spi.VerticleFactory- Overrides:
initin classio.vertx.maven.MavenVerticleFactory
-
prefix
- Specified by:
prefixin interfaceio.vertx.core.spi.VerticleFactory- Overrides:
prefixin classio.vertx.maven.MavenVerticleFactory
-
createVerticle
public void createVerticle(String verticleName, io.vertx.core.DeploymentOptions deploymentOptions, ClassLoader classLoader, io.vertx.core.Promise<Callable<io.vertx.core.Verticle>> promise) - Overrides:
createVerticlein classio.vertx.maven.MavenVerticleFactory
-
findRootMavenServiceFactoryException
-
getServiceDescriptor
protected io.vertx.core.json.JsonObject getServiceDescriptor(ClassLoader classLoader, String serviceName) -
readDescriptor
-
createServiceOptions
protected MavenServiceOptions createServiceOptions(String coordsString, String identifierNoPrefix, String serviceName, ClassLoader classLoader) -
createServiceOptions
protected MavenServiceOptions createServiceOptions(URLClassLoader urlClassLoader, File file, byte[] checksum, String identifierNoPrefix, String serviceName) -
resolveArtifacts
-
getMainVerticleNameFromManifest
-
createClassLoader
protected URLClassLoader createClassLoader(List<org.eclipse.aether.artifact.Artifact> artifacts, ClassLoader parentClassLoader) -
checksumOf
-
computeDigest
-
createWrapperVerticle
protected io.vertx.core.AbstractVerticle createWrapperVerticle(String fullQualifiedVerticleName, MavenServiceOptions serviceOptions, io.vertx.core.DeploymentOptions deploymentOptions)
-