{"action":"created","comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/comments/54003320","id":54003320,"diff_hunk":"@@ -174,20 +135,40 @@ public ProcessorConfigurer via(Class<?> processor) {\n \n \t\tString[] profiles = null;\n \n-\t\tConfigurableApplicationContext parentContext;\n-\n \t\tString namespace;\n \n \t\tClass<?> getApp() {\n \t\t\treturn this.app;\n \t\t}\n \n-\t\tpublic void setParentContext(ConfigurableApplicationContext parentContext) {\n-\t\t\tthis.parentContext = parentContext;\n+\t\tpublic T as(String... names) {\n+\t\t\tthis.names = names;\n+\t\t\treturn getConfigurer();\n+\t\t}\n+\n+\t\tpublic T args(String... args) {\n+\t\t\tthis.args = args;\n+\t\t\treturn getConfigurer();\n+\t\t}\n+\n+\t\tpublic T profiles(String... profiles) {\n+\t\t\tthis.profiles = profiles;\n+\t\t\treturn getConfigurer();\n+\t\t}\n+\n+\t\tpublic T parent(ConfigurableApplicationContext parentContext) {","path":"spring-cloud-stream/src/main/java/org/springframework/cloud/stream/aggregate/AggregateApplicationBuilder.java","position":164,"original_position":164,"commit_id":"8f8ae8328271d74709a9721bc48ccd4d77d228b4","original_commit_id":"8f8ae8328271d74709a9721bc48ccd4d77d228b4","user":{"login":"mbogoevici","id":159684,"avatar_url":"https://avatars.githubusercontent.com/u/159684?v=3","gravatar_id":"","url":"https://api.github.com/users/mbogoevici","html_url":"https://github.com/mbogoevici","followers_url":"https://api.github.com/users/mbogoevici/followers","following_url":"https://api.github.com/users/mbogoevici/following{/other_user}","gists_url":"https://api.github.com/users/mbogoevici/gists{/gist_id}","starred_url":"https://api.github.com/users/mbogoevici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbogoevici/subscriptions","organizations_url":"https://api.github.com/users/mbogoevici/orgs","repos_url":"https://api.github.com/users/mbogoevici/repos","events_url":"https://api.github.com/users/mbogoevici/events{/privacy}","received_events_url":"https://api.github.com/users/mbogoevici/received_events","type":"User","site_admin":false},"body":"I'd be tempted to move this to the `AggregateApplicationBuilder` itself since it cannot be meaningfully invoked on each child module. ","created_at":"2016-02-24T20:45:31Z","updated_at":"2016-02-24T20:45:31Z","html_url":"https://github.com/spring-cloud/spring-cloud-stream/pull/372#discussion_r54003320","pull_request_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372","_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/comments/54003320"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-stream/pull/372#discussion_r54003320"},"pull_request":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372"}}},"pull_request":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372","id":60514269,"html_url":"https://github.com/spring-cloud/spring-cloud-stream/pull/372","diff_url":"https://github.com/spring-cloud/spring-cloud-stream/pull/372.diff","patch_url":"https://github.com/spring-cloud/spring-cloud-stream/pull/372.patch","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/372","number":372,"state":"open","locked":false,"title":"Make AggregateApplicationBuilder more fluent","user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"body":"So you can add a parent for instance, like this:\r\n\r\n```\r\nnew AggregateApplicationBuilder().from(TwitterStreamApplication.class)\r\n\t.args(new String[] { \"--language=en\" }).to(StreamTransformer.class)\r\n\t.parent(\r\n\t\tSpringApplication.run(ModuleApplication.class, args))\r\n\t.run();\r\n```","created_at":"2016-02-24T14:12:04Z","updated_at":"2016-02-24T20:45:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b40b94717c99fc6e132abcb676148870b42b289","assignee":{"login":"mbogoevici","id":159684,"avatar_url":"https://avatars.githubusercontent.com/u/159684?v=3","gravatar_id":"","url":"https://api.github.com/users/mbogoevici","html_url":"https://github.com/mbogoevici","followers_url":"https://api.github.com/users/mbogoevici/followers","following_url":"https://api.github.com/users/mbogoevici/following{/other_user}","gists_url":"https://api.github.com/users/mbogoevici/gists{/gist_id}","starred_url":"https://api.github.com/users/mbogoevici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbogoevici/subscriptions","organizations_url":"https://api.github.com/users/mbogoevici/orgs","repos_url":"https://api.github.com/users/mbogoevici/repos","events_url":"https://api.github.com/users/mbogoevici/events{/privacy}","received_events_url":"https://api.github.com/users/mbogoevici/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372/commits","review_comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372/comments","review_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/372/comments","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/statuses/8f8ae8328271d74709a9721bc48ccd4d77d228b4","head":{"label":"dsyer:feature/builder","ref":"feature/builder","sha":"8f8ae8328271d74709a9721bc48ccd4d77d228b4","user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"repo":{"id":38820602,"name":"spring-cloud-stream","full_name":"dsyer/spring-cloud-stream","owner":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dsyer/spring-cloud-stream","description":"Messaging Microservices with Spring Integration","fork":true,"url":"https://api.github.com/repos/dsyer/spring-cloud-stream","forks_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/forks","keys_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/teams","hooks_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/hooks","issue_events_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/issues/events{/number}","events_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/events","assignees_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/assignees{/user}","branches_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/branches{/branch}","tags_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/tags","blobs_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/languages","stargazers_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/stargazers","contributors_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/contributors","subscribers_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/subscribers","subscription_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/subscription","commits_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/contents/{+path}","compare_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/merges","archive_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/downloads","issues_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/issues{/number}","pulls_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/labels{/name}","releases_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/releases{/id}","deployments_url":"https://api.github.com/repos/dsyer/spring-cloud-stream/deployments","created_at":"2015-07-09T13:04:36Z","updated_at":"2016-02-01T15:22:05Z","pushed_at":"2016-02-24T14:11:42Z","git_url":"git://github.com/dsyer/spring-cloud-stream.git","ssh_url":"git@github.com:dsyer/spring-cloud-stream.git","clone_url":"https://github.com/dsyer/spring-cloud-stream.git","svn_url":"https://github.com/dsyer/spring-cloud-stream","homepage":null,"size":1633,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-cloud:master","ref":"master","sha":"bc0723df896cae566261e025eb5ddd786430441d","user":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":38764029,"name":"spring-cloud-stream","full_name":"spring-cloud/spring-cloud-stream","owner":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-cloud/spring-cloud-stream","description":"Messaging Microservices with Spring Integration","fork":false,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream","forks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/forks","keys_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/teams","hooks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/hooks","issue_events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/events{/number}","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/events","assignees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/assignees{/user}","branches_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/branches{/branch}","tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/tags","blobs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/languages","stargazers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/stargazers","contributors_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/contributors","subscribers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/subscribers","subscription_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/subscription","commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/contents/{+path}","compare_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/merges","archive_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/downloads","issues_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues{/number}","pulls_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/labels{/name}","releases_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/releases{/id}","deployments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/deployments","created_at":"2015-07-08T15:51:38Z","updated_at":"2016-02-21T15:22:05Z","pushed_at":"2016-02-24T19:05:06Z","git_url":"git://github.com/spring-cloud/spring-cloud-stream.git","ssh_url":"git@github.com:spring-cloud/spring-cloud-stream.git","clone_url":"https://github.com/spring-cloud/spring-cloud-stream.git","svn_url":"https://github.com/spring-cloud/spring-cloud-stream","homepage":"http://cloud.spring.io/spring-cloud-stream/","size":3262,"stargazers_count":40,"watchers_count":40,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"open_issues_count":53,"forks":34,"open_issues":53,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-stream/pull/372"},"issue":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/372"},"comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/issues/372/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/pulls/372/commits"},"statuses":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-stream/statuses/8f8ae8328271d74709a9721bc48ccd4d77d228b4"}}}}