{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/ARouter/issues/687","repository_url":"https://api.github.com/repos/alibaba/ARouter","labels_url":"https://api.github.com/repos/alibaba/ARouter/issues/687/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/ARouter/issues/687/comments","events_url":"https://api.github.com/repos/alibaba/ARouter/issues/687/events","html_url":"https://github.com/alibaba/ARouter/issues/687","id":446435079,"node_id":"MDU6SXNzdWU0NDY0MzUwNzk=","number":687,"title":"PathReplaceService的init方法不能调用其他IProvider","user":{"login":"zhaowenliang","id":11538176,"node_id":"MDQ6VXNlcjExNTM4MTc2","avatar_url":"https://avatars3.githubusercontent.com/u/11538176?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaowenliang","html_url":"https://github.com/zhaowenliang","followers_url":"https://api.github.com/users/zhaowenliang/followers","following_url":"https://api.github.com/users/zhaowenliang/following{/other_user}","gists_url":"https://api.github.com/users/zhaowenliang/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaowenliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaowenliang/subscriptions","organizations_url":"https://api.github.com/users/zhaowenliang/orgs","repos_url":"https://api.github.com/users/zhaowenliang/repos","events_url":"https://api.github.com/users/zhaowenliang/events{/privacy}","received_events_url":"https://api.github.com/users/zhaowenliang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-05-21T06:17:46Z","updated_at":"2019-05-29T12:36:14Z","closed_at":"2019-05-29T12:36:14Z","author_association":"NONE","body":"```\r\n@Route(path = \"/ARouter/PathReplace\", name = \"路由路径替换服务\")\r\npublic class ARouterPathReplaceService implements PathReplaceService {\r\n\r\n    /**\r\n     * 代理注册集合\r\n     */\r\n    private Map<String, ARouterPathReplaceProvider> registerDelegates;\r\n\r\n    @Override\r\n    public void init(Context context) {\r\n        LogUtils.d(\"ARouterPathReplaceService --> 初始化\");\r\n        // 初始化注入各个模块转换代理类。\r\n        registerDelegates = new HashMap<>();\r\n\r\n        // 注册ARouterConfig.ROUTE_GROUP_PERSON模块，路由路径转换提供者。\r\n        ARouterPathReplaceProvider pathReplaceProvider = (ARouterPathReplaceProvider) ARouterUtils.buildPath(ARouterConfig.WALLET_PROVIDER_PATH_REPLACE).navigation();\r\n        if (pathReplaceProvider != null) {\r\n            registerDelegates.put(ARouterConfig.ROUTE_GROUP_PERSON, pathReplaceProvider);\r\n        }\r\n    }\r\n}\r\n```\r\n这段代码跑起来之后会一直打印init方法调用，难道在PathReplaceService的init方法中不能再调用其他的IProvider吗，比如我要在这个类里获取其他module的实现类，应该只能用IProvider获取吧。"},"comment":{"url":"https://api.github.com/repos/alibaba/ARouter/issues/comments/496917808","html_url":"https://github.com/alibaba/ARouter/issues/687#issuecomment-496917808","issue_url":"https://api.github.com/repos/alibaba/ARouter/issues/687","id":496917808,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5NjkxNzgwOA==","user":{"login":"zhi1ong","id":6677909,"node_id":"MDQ6VXNlcjY2Nzc5MDk=","avatar_url":"https://avatars1.githubusercontent.com/u/6677909?v=4","gravatar_id":"","url":"https://api.github.com/users/zhi1ong","html_url":"https://github.com/zhi1ong","followers_url":"https://api.github.com/users/zhi1ong/followers","following_url":"https://api.github.com/users/zhi1ong/following{/other_user}","gists_url":"https://api.github.com/users/zhi1ong/gists{/gist_id}","starred_url":"https://api.github.com/users/zhi1ong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhi1ong/subscriptions","organizations_url":"https://api.github.com/users/zhi1ong/orgs","repos_url":"https://api.github.com/users/zhi1ong/repos","events_url":"https://api.github.com/users/zhi1ong/events{/privacy}","received_events_url":"https://api.github.com/users/zhi1ong/received_events","type":"User","site_admin":false},"created_at":"2019-05-29T12:36:14Z","updated_at":"2019-05-29T12:36:14Z","author_association":"MEMBER","body":"循环嵌套了，你调用任何 path 的时候，都会调用一次 PathReplaceService，自己注意跳出循环"}}
{"actor":{"display_login":"zhi1ong"}}