Interface PlugRouter


  • public interface PlugRouter
    「Extension」 Name: Dynamic Router Basic dynamic spec extension, every dynamic router must implements this interface for building dynamic routing system. 1. The router system will mount to default Order: 6_000_000, it means that dynamic router priority is lower than ZERO Standard: ( 5_000_000 ). 2. There is a default method implementation and to nothing, one you have no implementation in extension plugins, it's also available and do not impact Standard Part.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String KEY_ROUTER  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void bind​(io.vertx.core.Vertx vertx)  
      static io.vertx.core.json.JsonObject config()  
      default int getOrder()
      We suggest do not overwrite this value once you haven't known the internal architecture of Zero Framework.
      void mount​(io.vertx.ext.web.Router router, io.vertx.core.json.JsonObject config)  
    • Method Detail

      • config

        static io.vertx.core.json.JsonObject config()
      • mount

        void mount​(io.vertx.ext.web.Router router,
                   io.vertx.core.json.JsonObject config)
      • bind

        default void bind​(io.vertx.core.Vertx vertx)
      • getOrder

        default int getOrder()
        We suggest do not overwrite this value once you haven't known the internal architecture of Zero Framework.