类 ScriptRouterFactory

  • 所有已实现的接口:
    RouterFactory

    public class ScriptRouterFactory
    extends Object
    implements RouterFactory
    ScriptRouterFactory

    Example URLS used by Script Router Factory:

    1. script://registryAddress?type=js&rule=xxxx
    2. script:///path/to/routerfile.js?type=js&rule=xxxx
    3. script://D:\path\to\routerfile.js?type=js&rule=xxxx
    4. script://C:/path/to/routerfile.js?type=js&rule=xxxx
    The host value in URL points out the address of the source content of the Script Router,Registry、File etc
    • 构造器详细资料

      • ScriptRouterFactory

        public ScriptRouterFactory()
    • 方法详细资料

      • getRouter

        public Router getRouter​(URL url)
        从接口复制的说明: RouterFactory
        Create router. Since 2.7.0, most of the time, we will not use @Adaptive feature, so it's kept only for compatibility.
        指定者:
        getRouter 在接口中 RouterFactory
        参数:
        url - url
        返回:
        router instance