Class JSVerticleFactory

  • All Implemented Interfaces:
    io.vertx.core.spi.VerticleFactory

    public final class JSVerticleFactory
    extends ESVerticleFactory
    • Constructor Detail

      • JSVerticleFactory

        public JSVerticleFactory()
    • Method Detail

      • prefix

        public String prefix()
      • createVerticle

        protected io.vertx.core.Verticle createVerticle​(Runtime runtime,
                                                        String fsVerticleName)
        Description copied from class: ESVerticleFactory
        Create a vertx verticle that wraps the script, it will use the runtime configured in the ESVerticleFactory.createRuntime(ECMAEngine) method.
        Specified by:
        createVerticle in class ESVerticleFactory
        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: ESVerticleFactory
        Declares the default extensions this verticle factory will use when looking up for modules without extension on the filesystem.
        Specified by:
        defaultExtensions in class ESVerticleFactory
        Returns:
        array of string in the format .EXTENSION