Interface VerticleFactory

  • All Known Implementing Classes:
    GroovyVerticleFactory

    public interface VerticleFactory
    Has responsibility for creating verticle instances.

    Implementations of this are responsible for creating verticle written in various different JVM languages and for other purposes.

    Author:
    Tim Fox
    • Method Detail

      • removePrefix

        static String removePrefix​(String identifer)
        Helper method to remove a prefix from an identifier string
        Parameters:
        identifer - the identifier
        Returns:
        The identifier without the prefix (if it had any)
      • order

        default int order()
        The order of the factory. If there is more than one matching verticle they will be tried in ascending order.
        Returns:
        the order
      • init

        default void init​(Vertx vertx)
        Initialise the factory
        Parameters:
        vertx - The Vert.x instance
      • close

        default void close()
        Close the factory. The implementation must release all resources.
      • prefix

        String prefix()
        Returns:
        The prefix for the factory, e.g. "java", or "js".