Class GroovyVerticleFactory
java.lang.Object
io.vertx.lang.groovy.GroovyVerticleFactory
- All Implemented Interfaces:
VerticleFactory
Placeholder
- Author:
- Tim Fox, Alexander Klein, Danny Kirchmeier, Julien Viet
-
Constructor Details
-
GroovyVerticleFactory
public GroovyVerticleFactory()
-
-
Method Details
-
init
Description copied from interface:VerticleFactoryInitialise the factory- Specified by:
initin interfaceVerticleFactory- Parameters:
vertx- The Vert.x instance
-
prefix
- Specified by:
prefixin interfaceVerticleFactory- Returns:
- The prefix for the factory, e.g. "java", or "js".
-
createVerticle
public void createVerticle(String verticleName, ClassLoader classLoader, Promise<Callable<Verticle>> promise) Description copied from interface:VerticleFactoryCreate a verticle instance. If this method is likely to be slow then make sure it is run on a worker thread byVertx.executeBlocking(Callable, boolean).- Specified by:
createVerticlein interfaceVerticleFactory- Parameters:
verticleName- The verticle nameclassLoader- The class loaderpromise- the promise to complete with the result
-
close
public void close()Description copied from interface:VerticleFactoryClose the factory. The implementation must release all resources.- Specified by:
closein interfaceVerticleFactory
-