{"action":"created","issue":{"url":"https://api.github.com/repos/4finance/micro-infra-spring/issues/179","labels_url":"https://api.github.com/repos/4finance/micro-infra-spring/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/4finance/micro-infra-spring/issues/179/comments","events_url":"https://api.github.com/repos/4finance/micro-infra-spring/issues/179/events","html_url":"https://github.com/4finance/micro-infra-spring/pull/179","id":54714147,"number":179,"title":"Alternative way to customize ServiceRestClient beans (PoC)","user":{"login":"szpak","id":148013,"avatar_url":"https://avatars.githubusercontent.com/u/148013?v=3","gravatar_id":"","url":"https://api.github.com/users/szpak","html_url":"https://github.com/szpak","followers_url":"https://api.github.com/users/szpak/followers","following_url":"https://api.github.com/users/szpak/following{/other_user}","gists_url":"https://api.github.com/users/szpak/gists{/gist_id}","starred_url":"https://api.github.com/users/szpak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szpak/subscriptions","organizations_url":"https://api.github.com/users/szpak/orgs","repos_url":"https://api.github.com/users/szpak/repos","events_url":"https://api.github.com/users/szpak/events{/privacy}","received_events_url":"https://api.github.com/users/szpak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/4finance/micro-infra-spring/labels/discussion","name":"discussion","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-18T23:13:09Z","updated_at":"2015-01-19T10:18:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/4finance/micro-infra-spring/pulls/179","html_url":"https://github.com/4finance/micro-infra-spring/pull/179","diff_url":"https://github.com/4finance/micro-infra-spring/pull/179.diff","patch_url":"https://github.com/4finance/micro-infra-spring/pull/179.patch"},"body":"**DO NOT MERGE** - this is a PoC to discuss.\r\n\r\nIn reference to issues with custom `RestTemplate` or its modification I took a look how Spring manages beans customization on their own (with `@EnableAsync` and `@EnableScheduling`). One of the possible solution is to provide an additional optional bean which when available will provide beans which should be used by `ServiceRestClientConfigurer`. By default beans with default values will be created.\r\n\r\nCons. The solution does not allow to modify existing default components. It complicates Configuration code.\r\n\r\nCC: @mariuszs, @ArturGajowy "},"comment":{"url":"https://api.github.com/repos/4finance/micro-infra-spring/issues/comments/70471610","html_url":"https://github.com/4finance/micro-infra-spring/pull/179#issuecomment-70471610","issue_url":"https://api.github.com/repos/4finance/micro-infra-spring/issues/179","id":70471610,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T10:18:00Z","updated_at":"2015-01-19T10:18:00Z","body":"\n[![Coverage Status](https://coveralls.io/builds/1765996/badge)](https://coveralls.io/builds/1765996)\n\nCoverage decreased (-0.12%) when pulling **b37a242533e674e1dc76751ddcbb0f1c695451f0 on topic/restClientCustomization** into **56f4eb2b48065f528ef11538703c04684db008cc on master**.\n"}}