{"action":"created","comment":{"url":"https://api.github.com/repos/windup/windup/pulls/comments/56986242","id":56986242,"diff_hunk":"@@ -21,4 +26,22 @@ public SpringBeanService(GraphContext context)\n     {\n         return super.findAllByProperty(SpringBeanModel.SPRING_BEAN_NAME, name);\n     }\n+\n+    /**\n+     *\n+     * @param application\n+     * @return an unmodifiable list of SpringBeanModel entries for the given application\n+     */\n+    public List<SpringBeanModel> findAllByApplication(ProjectModel application)\n+    {\n+        List<SpringBeanModel> models = new ArrayList<>();\n+        for (SpringBeanModel model : findAll())\n+        {\n+            if (application.equals(model.getApplication()))\n+            {\n+                models.add(model);\n+            }","path":"rules-java-ee/addon/src/main/java/org/jboss/windup/rules/apps/javaee/service/SpringBeanService.java","position":40,"original_position":40,"commit_id":"494e064ddbd28b80c198c3e6f8c58fdb88cb911f","original_commit_id":"494e064ddbd28b80c198c3e6f8c58fdb88cb911f","user":{"login":"jsight","id":1181549,"avatar_url":"https://avatars.githubusercontent.com/u/1181549?v=3","gravatar_id":"","url":"https://api.github.com/users/jsight","html_url":"https://github.com/jsight","followers_url":"https://api.github.com/users/jsight/followers","following_url":"https://api.github.com/users/jsight/following{/other_user}","gists_url":"https://api.github.com/users/jsight/gists{/gist_id}","starred_url":"https://api.github.com/users/jsight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsight/subscriptions","organizations_url":"https://api.github.com/users/jsight/orgs","repos_url":"https://api.github.com/users/jsight/repos","events_url":"https://api.github.com/users/jsight/events{/privacy}","received_events_url":"https://api.github.com/users/jsight/received_events","type":"User","site_admin":false},"body":"Yes, those could likely be improved as well. I did go through them to find any cases where we weren't filtering by app (hopefully I found them all).","created_at":"2016-03-22T13:38:16Z","updated_at":"2016-03-22T13:38:16Z","html_url":"https://github.com/windup/windup/pull/860#discussion_r56986242","pull_request_url":"https://api.github.com/repos/windup/windup/pulls/860","_links":{"self":{"href":"https://api.github.com/repos/windup/windup/pulls/comments/56986242"},"html":{"href":"https://github.com/windup/windup/pull/860#discussion_r56986242"},"pull_request":{"href":"https://api.github.com/repos/windup/windup/pulls/860"}}},"pull_request":{"url":"https://api.github.com/repos/windup/windup/pulls/860","id":63555449,"html_url":"https://github.com/windup/windup/pull/860","diff_url":"https://github.com/windup/windup/pull/860.diff","patch_url":"https://github.com/windup/windup/pull/860.patch","issue_url":"https://api.github.com/repos/windup/windup/issues/860","number":860,"state":"closed","locked":false,"title":"WINDUP-952 Multi-application support for Spring bean report","user":{"login":"mkouba","id":913004,"avatar_url":"https://avatars.githubusercontent.com/u/913004?v=3","gravatar_id":"","url":"https://api.github.com/users/mkouba","html_url":"https://github.com/mkouba","followers_url":"https://api.github.com/users/mkouba/followers","following_url":"https://api.github.com/users/mkouba/following{/other_user}","gists_url":"https://api.github.com/users/mkouba/gists{/gist_id}","starred_url":"https://api.github.com/users/mkouba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkouba/subscriptions","organizations_url":"https://api.github.com/users/mkouba/orgs","repos_url":"https://api.github.com/users/mkouba/repos","events_url":"https://api.github.com/users/mkouba/events{/privacy}","received_events_url":"https://api.github.com/users/mkouba/received_events","type":"User","site_admin":false},"body":"Note that this PR does not contain a test. Actually, I'm not quite sure how to write such a test yet. But I will try to do my best if it's required ;-)","created_at":"2016-03-21T12:19:31Z","updated_at":"2016-03-22T13:38:16Z","closed_at":"2016-03-21T20:41:01Z","merged_at":"2016-03-21T20:41:01Z","merge_commit_sha":"cdefbed3c72b979c5d3dafe2675d9b5dd9ad9b80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/windup/windup/pulls/860/commits","review_comments_url":"https://api.github.com/repos/windup/windup/pulls/860/comments","review_comment_url":"https://api.github.com/repos/windup/windup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/windup/windup/issues/860/comments","statuses_url":"https://api.github.com/repos/windup/windup/statuses/494e064ddbd28b80c198c3e6f8c58fdb88cb911f","head":{"label":"mkouba:WINDUP-952","ref":"WINDUP-952","sha":"494e064ddbd28b80c198c3e6f8c58fdb88cb911f","user":{"login":"mkouba","id":913004,"avatar_url":"https://avatars.githubusercontent.com/u/913004?v=3","gravatar_id":"","url":"https://api.github.com/users/mkouba","html_url":"https://github.com/mkouba","followers_url":"https://api.github.com/users/mkouba/followers","following_url":"https://api.github.com/users/mkouba/following{/other_user}","gists_url":"https://api.github.com/users/mkouba/gists{/gist_id}","starred_url":"https://api.github.com/users/mkouba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkouba/subscriptions","organizations_url":"https://api.github.com/users/mkouba/orgs","repos_url":"https://api.github.com/users/mkouba/repos","events_url":"https://api.github.com/users/mkouba/events{/privacy}","received_events_url":"https://api.github.com/users/mkouba/received_events","type":"User","site_admin":false},"repo":{"id":52088336,"name":"windup","full_name":"mkouba/windup","owner":{"login":"mkouba","id":913004,"avatar_url":"https://avatars.githubusercontent.com/u/913004?v=3","gravatar_id":"","url":"https://api.github.com/users/mkouba","html_url":"https://github.com/mkouba","followers_url":"https://api.github.com/users/mkouba/followers","following_url":"https://api.github.com/users/mkouba/following{/other_user}","gists_url":"https://api.github.com/users/mkouba/gists{/gist_id}","starred_url":"https://api.github.com/users/mkouba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkouba/subscriptions","organizations_url":"https://api.github.com/users/mkouba/orgs","repos_url":"https://api.github.com/users/mkouba/repos","events_url":"https://api.github.com/users/mkouba/events{/privacy}","received_events_url":"https://api.github.com/users/mkouba/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mkouba/windup","description":"Windup - JBoss Automated Migration Tool","fork":true,"url":"https://api.github.com/repos/mkouba/windup","forks_url":"https://api.github.com/repos/mkouba/windup/forks","keys_url":"https://api.github.com/repos/mkouba/windup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mkouba/windup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mkouba/windup/teams","hooks_url":"https://api.github.com/repos/mkouba/windup/hooks","issue_events_url":"https://api.github.com/repos/mkouba/windup/issues/events{/number}","events_url":"https://api.github.com/repos/mkouba/windup/events","assignees_url":"https://api.github.com/repos/mkouba/windup/assignees{/user}","branches_url":"https://api.github.com/repos/mkouba/windup/branches{/branch}","tags_url":"https://api.github.com/repos/mkouba/windup/tags","blobs_url":"https://api.github.com/repos/mkouba/windup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mkouba/windup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mkouba/windup/git/refs{/sha}","trees_url":"https://api.github.com/repos/mkouba/windup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mkouba/windup/statuses/{sha}","languages_url":"https://api.github.com/repos/mkouba/windup/languages","stargazers_url":"https://api.github.com/repos/mkouba/windup/stargazers","contributors_url":"https://api.github.com/repos/mkouba/windup/contributors","subscribers_url":"https://api.github.com/repos/mkouba/windup/subscribers","subscription_url":"https://api.github.com/repos/mkouba/windup/subscription","commits_url":"https://api.github.com/repos/mkouba/windup/commits{/sha}","git_commits_url":"https://api.github.com/repos/mkouba/windup/git/commits{/sha}","comments_url":"https://api.github.com/repos/mkouba/windup/comments{/number}","issue_comment_url":"https://api.github.com/repos/mkouba/windup/issues/comments{/number}","contents_url":"https://api.github.com/repos/mkouba/windup/contents/{+path}","compare_url":"https://api.github.com/repos/mkouba/windup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mkouba/windup/merges","archive_url":"https://api.github.com/repos/mkouba/windup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mkouba/windup/downloads","issues_url":"https://api.github.com/repos/mkouba/windup/issues{/number}","pulls_url":"https://api.github.com/repos/mkouba/windup/pulls{/number}","milestones_url":"https://api.github.com/repos/mkouba/windup/milestones{/number}","notifications_url":"https://api.github.com/repos/mkouba/windup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mkouba/windup/labels{/name}","releases_url":"https://api.github.com/repos/mkouba/windup/releases{/id}","deployments_url":"https://api.github.com/repos/mkouba/windup/deployments","created_at":"2016-02-19T13:09:58Z","updated_at":"2016-02-19T13:10:05Z","pushed_at":"2016-03-21T14:21:14Z","git_url":"git://github.com/mkouba/windup.git","ssh_url":"git@github.com:mkouba/windup.git","clone_url":"https://github.com/mkouba/windup.git","svn_url":"https://github.com/mkouba/windup","homepage":"","size":97904,"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":"windup:master","ref":"master","sha":"94afabe5eefdb67da87599c0ed61913de74e7158","user":{"login":"windup","id":4266383,"avatar_url":"https://avatars.githubusercontent.com/u/4266383?v=3","gravatar_id":"","url":"https://api.github.com/users/windup","html_url":"https://github.com/windup","followers_url":"https://api.github.com/users/windup/followers","following_url":"https://api.github.com/users/windup/following{/other_user}","gists_url":"https://api.github.com/users/windup/gists{/gist_id}","starred_url":"https://api.github.com/users/windup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windup/subscriptions","organizations_url":"https://api.github.com/users/windup/orgs","repos_url":"https://api.github.com/users/windup/repos","events_url":"https://api.github.com/users/windup/events{/privacy}","received_events_url":"https://api.github.com/users/windup/received_events","type":"Organization","site_admin":false},"repo":{"id":9702026,"name":"windup","full_name":"windup/windup","owner":{"login":"windup","id":4266383,"avatar_url":"https://avatars.githubusercontent.com/u/4266383?v=3","gravatar_id":"","url":"https://api.github.com/users/windup","html_url":"https://github.com/windup","followers_url":"https://api.github.com/users/windup/followers","following_url":"https://api.github.com/users/windup/following{/other_user}","gists_url":"https://api.github.com/users/windup/gists{/gist_id}","starred_url":"https://api.github.com/users/windup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/windup/subscriptions","organizations_url":"https://api.github.com/users/windup/orgs","repos_url":"https://api.github.com/users/windup/repos","events_url":"https://api.github.com/users/windup/events{/privacy}","received_events_url":"https://api.github.com/users/windup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/windup/windup","description":"Windup - JBoss Automated Migration Tool","fork":false,"url":"https://api.github.com/repos/windup/windup","forks_url":"https://api.github.com/repos/windup/windup/forks","keys_url":"https://api.github.com/repos/windup/windup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/windup/windup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/windup/windup/teams","hooks_url":"https://api.github.com/repos/windup/windup/hooks","issue_events_url":"https://api.github.com/repos/windup/windup/issues/events{/number}","events_url":"https://api.github.com/repos/windup/windup/events","assignees_url":"https://api.github.com/repos/windup/windup/assignees{/user}","branches_url":"https://api.github.com/repos/windup/windup/branches{/branch}","tags_url":"https://api.github.com/repos/windup/windup/tags","blobs_url":"https://api.github.com/repos/windup/windup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/windup/windup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/windup/windup/git/refs{/sha}","trees_url":"https://api.github.com/repos/windup/windup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/windup/windup/statuses/{sha}","languages_url":"https://api.github.com/repos/windup/windup/languages","stargazers_url":"https://api.github.com/repos/windup/windup/stargazers","contributors_url":"https://api.github.com/repos/windup/windup/contributors","subscribers_url":"https://api.github.com/repos/windup/windup/subscribers","subscription_url":"https://api.github.com/repos/windup/windup/subscription","commits_url":"https://api.github.com/repos/windup/windup/commits{/sha}","git_commits_url":"https://api.github.com/repos/windup/windup/git/commits{/sha}","comments_url":"https://api.github.com/repos/windup/windup/comments{/number}","issue_comment_url":"https://api.github.com/repos/windup/windup/issues/comments{/number}","contents_url":"https://api.github.com/repos/windup/windup/contents/{+path}","compare_url":"https://api.github.com/repos/windup/windup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/windup/windup/merges","archive_url":"https://api.github.com/repos/windup/windup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/windup/windup/downloads","issues_url":"https://api.github.com/repos/windup/windup/issues{/number}","pulls_url":"https://api.github.com/repos/windup/windup/pulls{/number}","milestones_url":"https://api.github.com/repos/windup/windup/milestones{/number}","notifications_url":"https://api.github.com/repos/windup/windup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/windup/windup/labels{/name}","releases_url":"https://api.github.com/repos/windup/windup/releases{/id}","deployments_url":"https://api.github.com/repos/windup/windup/deployments","created_at":"2013-04-26T18:52:08Z","updated_at":"2016-01-11T17:15:58Z","pushed_at":"2016-03-21T20:41:00Z","git_url":"git://github.com/windup/windup.git","ssh_url":"git@github.com:windup/windup.git","clone_url":"https://github.com/windup/windup.git","svn_url":"https://github.com/windup/windup","homepage":"","size":119021,"stargazers_count":47,"watchers_count":47,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":73,"mirror_url":null,"open_issues_count":46,"forks":73,"open_issues":46,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/windup/windup/pulls/860"},"html":{"href":"https://github.com/windup/windup/pull/860"},"issue":{"href":"https://api.github.com/repos/windup/windup/issues/860"},"comments":{"href":"https://api.github.com/repos/windup/windup/issues/860/comments"},"review_comments":{"href":"https://api.github.com/repos/windup/windup/pulls/860/comments"},"review_comment":{"href":"https://api.github.com/repos/windup/windup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/windup/windup/pulls/860/commits"},"statuses":{"href":"https://api.github.com/repos/windup/windup/statuses/494e064ddbd28b80c198c3e6f8c58fdb88cb911f"}}}}