{"action":"created","comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/comments/34349126","id":34349126,"diff_hunk":"@@ -0,0 +1,46 @@\n+/*\n+ * Copyright 2015 the original author or authors.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.springframework.cloud.streams.config;\n+\n+import org.springframework.beans.factory.FactoryBean;\n+import org.springframework.integration.channel.DirectChannel;\n+import org.springframework.messaging.MessageChannel;\n+\n+/**\n+ * {@link FactoryBean} for creating channels for fields annotated with\n+ * {@link org.springframework.cloud.streams.annotation.Input} and\n+ * {@link org.springframework.cloud.streams.annotation.Output}\n+ *\n+ * @author Marius Bogoevici\n+ */\n+public class DirectChannelFactoryBean implements FactoryBean<MessageChannel> {\n+\n+\t@Override\n+\tpublic MessageChannel getObject() throws Exception {\n+\t\treturn new DirectChannel();","path":"spring-cloud-streams/src/main/java/org/springframework/cloud/streams/config/DirectChannelFactoryBean.java","position":34,"original_position":34,"commit_id":"5b261c322a6623ae12f2c632b78c343fec2a0f32","original_commit_id":"5b261c322a6623ae12f2c632b78c343fec2a0f32","user":{"login":"markfisher","id":140784,"avatar_url":"https://avatars.githubusercontent.com/u/140784?v=3","gravatar_id":"","url":"https://api.github.com/users/markfisher","html_url":"https://github.com/markfisher","followers_url":"https://api.github.com/users/markfisher/followers","following_url":"https://api.github.com/users/markfisher/following{/other_user}","gists_url":"https://api.github.com/users/markfisher/gists{/gist_id}","starred_url":"https://api.github.com/users/markfisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markfisher/subscriptions","organizations_url":"https://api.github.com/users/markfisher/orgs","repos_url":"https://api.github.com/users/markfisher/repos","events_url":"https://api.github.com/users/markfisher/events{/privacy}","received_events_url":"https://api.github.com/users/markfisher/received_events","type":"User","site_admin":false},"body":"should this be assigned to a field so that the same instance would be returned if invoked multiple times?","created_at":"2015-07-10T12:09:35Z","updated_at":"2015-07-10T12:09:35Z","html_url":"https://github.com/spring-cloud/spring-cloud-streams/pull/7#discussion_r34349126","pull_request_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/comments/34349126"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-streams/pull/7#discussion_r34349126"},"pull_request":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7","id":39677529,"html_url":"https://github.com/spring-cloud/spring-cloud-streams/pull/7","diff_url":"https://github.com/spring-cloud/spring-cloud-streams/pull/7.diff","patch_url":"https://github.com/spring-cloud/spring-cloud-streams/pull/7.patch","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/issues/7","number":7,"state":"open","locked":false,"title":"Add support for @EnableModule, @Input and @Output","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":"* enable the component model based on @EnableModule with existing functionality\r\n* any field annotated with Input/Output will trigger the creation and injection of a channel\r\n* update examples and tests","created_at":"2015-07-10T12:00:25Z","updated_at":"2015-07-10T12:09:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70f70032bb91415050d68c7efa56d830eb5b512a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7/commits","review_comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7/comments","review_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/issues/7/comments","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/statuses/5b261c322a6623ae12f2c632b78c343fec2a0f32","head":{"label":"mbogoevici:component-model","ref":"component-model","sha":"5b261c322a6623ae12f2c632b78c343fec2a0f32","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},"repo":{"id":38768510,"name":"spring-cloud-streams","full_name":"mbogoevici/spring-cloud-streams","owner":{"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},"private":false,"html_url":"https://github.com/mbogoevici/spring-cloud-streams","description":"Messaging Microservices with Spring Integration","fork":true,"url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams","forks_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/forks","keys_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/teams","hooks_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/hooks","issue_events_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/issues/events{/number}","events_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/events","assignees_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/assignees{/user}","branches_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/branches{/branch}","tags_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/tags","blobs_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/statuses/{sha}","languages_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/languages","stargazers_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/stargazers","contributors_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/contributors","subscribers_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/subscribers","subscription_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/subscription","commits_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/contents/{+path}","compare_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/merges","archive_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/downloads","issues_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/issues{/number}","pulls_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/pulls{/number}","milestones_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/milestones{/number}","notifications_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/labels{/name}","releases_url":"https://api.github.com/repos/mbogoevici/spring-cloud-streams/releases{/id}","created_at":"2015-07-08T17:15:48Z","updated_at":"2015-07-09T16:41:39Z","pushed_at":"2015-07-10T11:59:44Z","git_url":"git://github.com/mbogoevici/spring-cloud-streams.git","ssh_url":"git@github.com:mbogoevici/spring-cloud-streams.git","clone_url":"https://github.com/mbogoevici/spring-cloud-streams.git","svn_url":"https://github.com/mbogoevici/spring-cloud-streams","homepage":null,"size":288,"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":"2fa5724cee8d159aa3690e5675543fab65f5df27","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-streams","full_name":"spring-cloud/spring-cloud-streams","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-streams","description":"Messaging Microservices with Spring Integration","fork":false,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams","forks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/forks","keys_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/teams","hooks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/hooks","issue_events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/issues/events{/number}","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/events","assignees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/assignees{/user}","branches_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/branches{/branch}","tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/tags","blobs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/languages","stargazers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/stargazers","contributors_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/contributors","subscribers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/subscribers","subscription_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/subscription","commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/contents/{+path}","compare_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/merges","archive_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/downloads","issues_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/issues{/number}","pulls_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/labels{/name}","releases_url":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/releases{/id}","created_at":"2015-07-08T15:51:38Z","updated_at":"2015-07-10T09:32:29Z","pushed_at":"2015-07-10T12:00:26Z","git_url":"git://github.com/spring-cloud/spring-cloud-streams.git","ssh_url":"git@github.com:spring-cloud/spring-cloud-streams.git","clone_url":"https://github.com/spring-cloud/spring-cloud-streams.git","svn_url":"https://github.com/spring-cloud/spring-cloud-streams","homepage":"http://cloud.spring.io/spring-cloud-streams/","size":349,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-streams/pull/7"},"issue":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/issues/7"},"comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-streams/statuses/5b261c322a6623ae12f2c632b78c343fec2a0f32"}}}}