Package io.reactiverse.es4x.impl
Class MJSVerticleFactory
- java.lang.Object
-
- io.reactiverse.es4x.ESVerticleFactory
-
- io.reactiverse.es4x.impl.MJSVerticleFactory
-
- All Implemented Interfaces:
io.vertx.core.spi.VerticleFactory
public final class MJSVerticleFactory extends ESVerticleFactory
-
-
Field Summary
-
Fields inherited from class io.reactiverse.es4x.ESVerticleFactory
engine
-
-
Constructor Summary
Constructors Constructor Description MJSVerticleFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.vertx.core.VerticlecreateVerticle(Runtime runtime, String fsVerticleName)Create a vertx verticle that wraps the script, it will use the runtime configured in theESVerticleFactory.createRuntime(ECMAEngine)method.protected String[]defaultExtensions()Declares the default extensions this verticle factory will use when looking up for modules without extension on the filesystem.Stringprefix()-
Methods inherited from class io.reactiverse.es4x.ESVerticleFactory
close, createRuntime, createVerticle, init, order, setupVerticleMessaging, waitFor
-
-
-
-
Method Detail
-
prefix
public String prefix()
-
createVerticle
protected io.vertx.core.Verticle createVerticle(Runtime runtime, String fsVerticleName)
Description copied from class:ESVerticleFactoryCreate a vertx verticle that wraps the script, it will use the runtime configured in theESVerticleFactory.createRuntime(ECMAEngine)method.- Specified by:
createVerticlein classESVerticleFactory- Parameters:
runtime- the runtime created before.fsVerticleName- the name as provided during the application initialization.- Returns:
- the configured verticle.
-
defaultExtensions
protected String[] defaultExtensions()
Description copied from class:ESVerticleFactoryDeclares the default extensions this verticle factory will use when looking up for modules without extension on the filesystem.- Specified by:
defaultExtensionsin classESVerticleFactory- Returns:
- array of string in the format
.EXTENSION
-
-