Top Constructors Methods
io.vertx.core.impl

public Class JavaVerticleFactory

extends Object
implements VerticleFactory
Class Inheritance
All Implemented Interfaces
io.vertx.core.spi.VerticleFactory
Imports
io.vertx.core.Promise, .Verticle, io.vertx.core.impl.verticle.CompilingClassLoader, io.vertx.core.spi.VerticleFactory, java.util.concurrent.Callable

Author
Tim Fox

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
createVerticle(String
The verticle name
verticleName
,
ClassLoader
The class loader
classLoader
,
Promise<Callable<Verticle>>
the promise to complete with the result
promise
)

Implements io.vertx.core.spi.VerticleFactory.createVerticle.

Create a verticle instance.

public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JavaVerticleFactoryback to summary
public JavaVerticleFactory()

Method Detail

createVerticleback to summary
public void createVerticle(String verticleName, ClassLoader classLoader, Promise<Callable<Verticle>> promise)

Implements io.vertx.core.spi.VerticleFactory.createVerticle.

Doc from io.vertx.core.spi.VerticleFactory.createVerticle.

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 Vertx#executeBlocking.

Parameters
verticleName:String

The verticle name

classLoader:ClassLoader

The class loader

promise:Promise<Callable<Verticle>>

the promise to complete with the result

Annotations
@Override
prefixback to summary
public String prefix()

Implements io.vertx.core.spi.VerticleFactory.prefix.

Returns:String

Doc from io.vertx.core.spi.VerticleFactory.prefix.

The prefix for the factory, e.g. "java", or "js".

Annotations
@Override