if (router_type == null || router_type.length() == 0){
logger.warn("Router url:\"" + url.toString() + "\" does not contain " + RpcConstants.ROUTER_KEY + ", router creation ignored!");
continue;
}
try{
Router router = ExtensionLoader.getExtensionLoader(RouterFactory.class).getExtension(router_type).getRouter(url);
if (!routers.contains(router))
routers.add(router);
}catch (Throwable t) {
logger.error("convert router url to router error, url: "+ url, t);
}