{"action":"created","comment":{"url":"https://api.github.com/repos/google/dagger/pulls/comments/22740288","id":22740288,"diff_hunk":"@@ -0,0 +1,67 @@\n+/*\n+ * Copyright (C) 2014 Google Inc.\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+package dagger.producers;\n+\n+import com.google.common.util.concurrent.ListenableFuture;\n+import java.lang.annotation.Documented;\n+import java.lang.annotation.Target;\n+\n+import static java.lang.annotation.ElementType.METHOD;\n+\n+/**\n+ * Annotates methods of a producer module to create a production binding. If the method returns\n+ * a {@link ListenableFuture}, then the parameter type of the future is bound to the value that the\n+ * future provides; otherwise, the return type is bound to the returned value. The production\n+ * component will pass dependencies to the method as parameters.\n+ *\n+ * @author Jesse Beder\n+ */\n+@Documented @Target(METHOD)\n+public @interface Produces {\n+  /** The type of binding into which the return type of the annotated method contributes. */\n+  enum Type {","path":"producers/src/main/java/dagger/producers/Produces.java","position":35,"original_position":35,"commit_id":"d1cca9de074431218c7cbf2ed48b996a718f36a2","original_commit_id":"d1cca9de074431218c7cbf2ed48b996a718f36a2","user":{"login":"gk5885","id":2279476,"avatar_url":"https://avatars.githubusercontent.com/u/2279476?v=3","gravatar_id":"","url":"https://api.github.com/users/gk5885","html_url":"https://github.com/gk5885","followers_url":"https://api.github.com/users/gk5885/followers","following_url":"https://api.github.com/users/gk5885/following{/other_user}","gists_url":"https://api.github.com/users/gk5885/gists{/gist_id}","starred_url":"https://api.github.com/users/gk5885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gk5885/subscriptions","organizations_url":"https://api.github.com/users/gk5885/orgs","repos_url":"https://api.github.com/users/gk5885/repos","events_url":"https://api.github.com/users/gk5885/events{/privacy}","received_events_url":"https://api.github.com/users/gk5885/received_events","type":"User","site_admin":false},"body":"Right.  This has just been a migration headache that I haven't been itching to undertake.","created_at":"2015-01-09T20:17:28Z","updated_at":"2015-01-09T20:17:28Z","html_url":"https://github.com/google/dagger/pull/96#discussion_r22740288","pull_request_url":"https://api.github.com/repos/google/dagger/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/google/dagger/pulls/comments/22740288"},"html":{"href":"https://github.com/google/dagger/pull/96#discussion_r22740288"},"pull_request":{"href":"https://api.github.com/repos/google/dagger/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/google/dagger/pulls/96","id":26390519,"html_url":"https://github.com/google/dagger/pull/96","diff_url":"https://github.com/google/dagger/pull/96.diff","patch_url":"https://github.com/google/dagger/pull/96.patch","issue_url":"https://api.github.com/repos/google/dagger/issues/96","number":96,"state":"open","locked":false,"title":"Merge from moe_writing_branch_from_02a32292dab18eafe393676bf6d3a32725219078","user":{"login":"cgruber","id":331234,"avatar_url":"https://avatars.githubusercontent.com/u/331234?v=3","gravatar_id":"","url":"https://api.github.com/users/cgruber","html_url":"https://github.com/cgruber","followers_url":"https://api.github.com/users/cgruber/followers","following_url":"https://api.github.com/users/cgruber/following{/other_user}","gists_url":"https://api.github.com/users/cgruber/gists{/gist_id}","starred_url":"https://api.github.com/users/cgruber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgruber/subscriptions","organizations_url":"https://api.github.com/users/cgruber/orgs","repos_url":"https://api.github.com/users/cgruber/repos","events_url":"https://api.github.com/users/cgruber/events{/privacy}","received_events_url":"https://api.github.com/users/cgruber/received_events","type":"User","site_admin":false},"body":"Merge in change from google internal repository.  Notable large changes are:\r\n\r\n  * Introduce Producers core API (though generators not present yet).  Producers are an asynchronous dependency graph suitable for creating worker graphs.  More detail on those will be added to documentation later.\r\n  * Scope validations between components is stricter.\r\n    - Singleton components cannot depend on non-Singleton components.\r\n    - Custom scopes (always supported) are now required for multiple-scope situations\r\n    - Inter-component scope relationships are evaluated to ensure they don't circle back (Singleton -> Request -> Singleton).\r\n    - Some scope validation can be turned down to warning or off to permit Dagger1 project migration (see ComponentProcessor javadoc for options)\r\n  * Some bug-fixes and cleanup\r\n\r\nNote: Some regressions have been noted - notably with dependency cycle reporting.  If you get a stack overflow, you have a dependency cycle that is blowing up our reporting.  It's a known error we're fixing.","created_at":"2014-12-19T18:43:09Z","updated_at":"2015-01-09T20:17:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1cf93ecfa4246ab4a68c3136692a350c60cb3cf7","assignee":{"login":"gk5885","id":2279476,"avatar_url":"https://avatars.githubusercontent.com/u/2279476?v=3","gravatar_id":"","url":"https://api.github.com/users/gk5885","html_url":"https://github.com/gk5885","followers_url":"https://api.github.com/users/gk5885/followers","following_url":"https://api.github.com/users/gk5885/following{/other_user}","gists_url":"https://api.github.com/users/gk5885/gists{/gist_id}","starred_url":"https://api.github.com/users/gk5885/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gk5885/subscriptions","organizations_url":"https://api.github.com/users/gk5885/orgs","repos_url":"https://api.github.com/users/gk5885/repos","events_url":"https://api.github.com/users/gk5885/events{/privacy}","received_events_url":"https://api.github.com/users/gk5885/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/google/dagger/pulls/96/commits","review_comments_url":"https://api.github.com/repos/google/dagger/pulls/96/comments","review_comment_url":"https://api.github.com/repos/google/dagger/pulls/comments/{number}","comments_url":"https://api.github.com/repos/google/dagger/issues/96/comments","statuses_url":"https://api.github.com/repos/google/dagger/statuses/d1cca9de074431218c7cbf2ed48b996a718f36a2","head":{"label":"google:moe_writing_branch_from_02a32292dab18eafe393676bf6d3a32725219078","ref":"moe_writing_branch_from_02a32292dab18eafe393676bf6d3a32725219078","sha":"d1cca9de074431218c7cbf2ed48b996a718f36a2","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":7968417,"name":"dagger","full_name":"google/dagger","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/dagger","description":"A fast dependency injector for Android and Java.","fork":true,"url":"https://api.github.com/repos/google/dagger","forks_url":"https://api.github.com/repos/google/dagger/forks","keys_url":"https://api.github.com/repos/google/dagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/dagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/dagger/teams","hooks_url":"https://api.github.com/repos/google/dagger/hooks","issue_events_url":"https://api.github.com/repos/google/dagger/issues/events{/number}","events_url":"https://api.github.com/repos/google/dagger/events","assignees_url":"https://api.github.com/repos/google/dagger/assignees{/user}","branches_url":"https://api.github.com/repos/google/dagger/branches{/branch}","tags_url":"https://api.github.com/repos/google/dagger/tags","blobs_url":"https://api.github.com/repos/google/dagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/dagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/dagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/dagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/dagger/statuses/{sha}","languages_url":"https://api.github.com/repos/google/dagger/languages","stargazers_url":"https://api.github.com/repos/google/dagger/stargazers","contributors_url":"https://api.github.com/repos/google/dagger/contributors","subscribers_url":"https://api.github.com/repos/google/dagger/subscribers","subscription_url":"https://api.github.com/repos/google/dagger/subscription","commits_url":"https://api.github.com/repos/google/dagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/dagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/dagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/dagger/issues/comments/{number}","contents_url":"https://api.github.com/repos/google/dagger/contents/{+path}","compare_url":"https://api.github.com/repos/google/dagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/dagger/merges","archive_url":"https://api.github.com/repos/google/dagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/dagger/downloads","issues_url":"https://api.github.com/repos/google/dagger/issues{/number}","pulls_url":"https://api.github.com/repos/google/dagger/pulls{/number}","milestones_url":"https://api.github.com/repos/google/dagger/milestones{/number}","notifications_url":"https://api.github.com/repos/google/dagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/dagger/labels{/name}","releases_url":"https://api.github.com/repos/google/dagger/releases{/id}","created_at":"2013-02-01T23:14:14Z","updated_at":"2015-01-08T20:07:54Z","pushed_at":"2015-01-09T20:09:43Z","git_url":"git://github.com/google/dagger.git","ssh_url":"git@github.com:google/dagger.git","clone_url":"https://github.com/google/dagger.git","svn_url":"https://github.com/google/dagger","homepage":"","size":7870,"stargazers_count":667,"watchers_count":667,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":60,"mirror_url":null,"open_issues_count":24,"forks":60,"open_issues":24,"watchers":667,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"a69a277663ac3905523a64c691582221efb05066","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":7968417,"name":"dagger","full_name":"google/dagger","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/dagger","description":"A fast dependency injector for Android and Java.","fork":true,"url":"https://api.github.com/repos/google/dagger","forks_url":"https://api.github.com/repos/google/dagger/forks","keys_url":"https://api.github.com/repos/google/dagger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/dagger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/dagger/teams","hooks_url":"https://api.github.com/repos/google/dagger/hooks","issue_events_url":"https://api.github.com/repos/google/dagger/issues/events{/number}","events_url":"https://api.github.com/repos/google/dagger/events","assignees_url":"https://api.github.com/repos/google/dagger/assignees{/user}","branches_url":"https://api.github.com/repos/google/dagger/branches{/branch}","tags_url":"https://api.github.com/repos/google/dagger/tags","blobs_url":"https://api.github.com/repos/google/dagger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/dagger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/dagger/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/dagger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/dagger/statuses/{sha}","languages_url":"https://api.github.com/repos/google/dagger/languages","stargazers_url":"https://api.github.com/repos/google/dagger/stargazers","contributors_url":"https://api.github.com/repos/google/dagger/contributors","subscribers_url":"https://api.github.com/repos/google/dagger/subscribers","subscription_url":"https://api.github.com/repos/google/dagger/subscription","commits_url":"https://api.github.com/repos/google/dagger/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/dagger/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/dagger/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/dagger/issues/comments/{number}","contents_url":"https://api.github.com/repos/google/dagger/contents/{+path}","compare_url":"https://api.github.com/repos/google/dagger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/dagger/merges","archive_url":"https://api.github.com/repos/google/dagger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/dagger/downloads","issues_url":"https://api.github.com/repos/google/dagger/issues{/number}","pulls_url":"https://api.github.com/repos/google/dagger/pulls{/number}","milestones_url":"https://api.github.com/repos/google/dagger/milestones{/number}","notifications_url":"https://api.github.com/repos/google/dagger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/dagger/labels{/name}","releases_url":"https://api.github.com/repos/google/dagger/releases{/id}","created_at":"2013-02-01T23:14:14Z","updated_at":"2015-01-08T20:07:54Z","pushed_at":"2015-01-09T20:09:43Z","git_url":"git://github.com/google/dagger.git","ssh_url":"git@github.com:google/dagger.git","clone_url":"https://github.com/google/dagger.git","svn_url":"https://github.com/google/dagger","homepage":"","size":7870,"stargazers_count":667,"watchers_count":667,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":60,"mirror_url":null,"open_issues_count":24,"forks":60,"open_issues":24,"watchers":667,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/dagger/pulls/96"},"html":{"href":"https://github.com/google/dagger/pull/96"},"issue":{"href":"https://api.github.com/repos/google/dagger/issues/96"},"comments":{"href":"https://api.github.com/repos/google/dagger/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/google/dagger/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/google/dagger/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/google/dagger/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/google/dagger/statuses/d1cca9de074431218c7cbf2ed48b996a718f36a2"}}}}