类 ScriptRouterFactory
- java.lang.Object
-
- org.apache.dubbo.rpc.cluster.router.script.ScriptRouterFactory
-
- 所有已实现的接口:
RouterFactory
public class ScriptRouterFactory extends Object implements RouterFactory
ScriptRouterFactoryExample URLS used by Script Router Factory:
- script://registryAddress?type=js&rule=xxxx
- script:///path/to/routerfile.js?type=js&rule=xxxx
- script://D:\path\to\routerfile.js?type=js&rule=xxxx
- script://C:/path/to/routerfile.js?type=js&rule=xxxx
-
-
方法详细资料
-
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
-
-