{"action":"created","comment":{"url":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/comments/35901263","id":35901263,"diff_hunk":"@@ -0,0 +1,40 @@\n+/*\n+ Copyright 2013 Red Hat, Inc. and/or its affiliates.\n+\n+ This file is part of lightblue.\n+\n+ This program is free software: you can redistribute it and/or modify\n+ it under the terms of the GNU General Public License as published by\n+ the Free Software Foundation, either version 3 of the License, or\n+ (at your option) any later version.\n+\n+ This program is distributed in the hope that it will be useful,\n+ but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ GNU General Public License for more details.\n+\n+ You should have received a copy of the GNU General Public License\n+ along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+package com.redhat.lightblue.extensions;\n+\n+/**\n+ * Controllers supporting extensions must implement this interface\n+ *\n+ * Here's how it all comes together:\n+ *\n+ * - XXXCrudController: implement ExtensionSupport\n+ *       interface. Implement the getExtensionInstance that returns an\n+ *      instance of the requested extension.\n+ * - The extension implementation extends Extension interface. \n+ */\n+public interface ExtensionSupport {\n+    /**\n+     * Returns an instance of the given extension\n+     *\n+     * @param extensionClass The class for the requested extension\n+     *\n+     * @return An instance of the extension, or null if the controller doesn't support this extension\n+     */\n+    Extension  getExtensionInstance(Class<? extends Extension> extensionClass);","path":"extensions/src/main/java/com/redhat/lightblue/extensions/ExtensionSupport.java","position":39,"original_position":39,"commit_id":"fd7d1bc9b0a00ff95c844d4df0e0f35b62e2b746","original_commit_id":"fd7d1bc9b0a00ff95c844d4df0e0f35b62e2b746","user":{"login":"dcrissman","id":1878960,"avatar_url":"https://avatars.githubusercontent.com/u/1878960?v=3","gravatar_id":"","url":"https://api.github.com/users/dcrissman","html_url":"https://github.com/dcrissman","followers_url":"https://api.github.com/users/dcrissman/followers","following_url":"https://api.github.com/users/dcrissman/following{/other_user}","gists_url":"https://api.github.com/users/dcrissman/gists{/gist_id}","starred_url":"https://api.github.com/users/dcrissman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcrissman/subscriptions","organizations_url":"https://api.github.com/users/dcrissman/orgs","repos_url":"https://api.github.com/users/dcrissman/repos","events_url":"https://api.github.com/users/dcrissman/events{/privacy}","received_events_url":"https://api.github.com/users/dcrissman/received_events","type":"User","site_admin":false},"body":"Should the returned Extension be of the same type as the extensionClass? Why not create a generic type?","created_at":"2015-07-30T18:11:21Z","updated_at":"2015-07-30T18:11:21Z","html_url":"https://github.com/lightblue-platform/lightblue-core/pull/430#discussion_r35901263","pull_request_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430","_links":{"self":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/comments/35901263"},"html":{"href":"https://github.com/lightblue-platform/lightblue-core/pull/430#discussion_r35901263"},"pull_request":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430"}}},"pull_request":{"url":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430","id":41258827,"html_url":"https://github.com/lightblue-platform/lightblue-core/pull/430","diff_url":"https://github.com/lightblue-platform/lightblue-core/pull/430.diff","patch_url":"https://github.com/lightblue-platform/lightblue-core/pull/430.patch","issue_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/430","number":430,"state":"open","locked":false,"title":"Synchronization extensions","user":{"login":"bserdar","id":3670797,"avatar_url":"https://avatars.githubusercontent.com/u/3670797?v=3","gravatar_id":"","url":"https://api.github.com/users/bserdar","html_url":"https://github.com/bserdar","followers_url":"https://api.github.com/users/bserdar/followers","following_url":"https://api.github.com/users/bserdar/following{/other_user}","gists_url":"https://api.github.com/users/bserdar/gists{/gist_id}","starred_url":"https://api.github.com/users/bserdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bserdar/subscriptions","organizations_url":"https://api.github.com/users/bserdar/orgs","repos_url":"https://api.github.com/users/bserdar/repos","events_url":"https://api.github.com/users/bserdar/events{/privacy}","received_events_url":"https://api.github.com/users/bserdar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-30T17:17:44Z","updated_at":"2015-07-30T18:11:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c14491928272ff43ab3594ef216707ad28fdcd4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430/commits","review_comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430/comments","review_comment_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/430/comments","statuses_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/statuses/fd7d1bc9b0a00ff95c844d4df0e0f35b62e2b746","head":{"label":"bserdar:sync","ref":"sync","sha":"fd7d1bc9b0a00ff95c844d4df0e0f35b62e2b746","user":{"login":"bserdar","id":3670797,"avatar_url":"https://avatars.githubusercontent.com/u/3670797?v=3","gravatar_id":"","url":"https://api.github.com/users/bserdar","html_url":"https://github.com/bserdar","followers_url":"https://api.github.com/users/bserdar/followers","following_url":"https://api.github.com/users/bserdar/following{/other_user}","gists_url":"https://api.github.com/users/bserdar/gists{/gist_id}","starred_url":"https://api.github.com/users/bserdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bserdar/subscriptions","organizations_url":"https://api.github.com/users/bserdar/orgs","repos_url":"https://api.github.com/users/bserdar/repos","events_url":"https://api.github.com/users/bserdar/events{/privacy}","received_events_url":"https://api.github.com/users/bserdar/received_events","type":"User","site_admin":false},"repo":{"id":23084045,"name":"lightblue-core","full_name":"bserdar/lightblue-core","owner":{"login":"bserdar","id":3670797,"avatar_url":"https://avatars.githubusercontent.com/u/3670797?v=3","gravatar_id":"","url":"https://api.github.com/users/bserdar","html_url":"https://github.com/bserdar","followers_url":"https://api.github.com/users/bserdar/followers","following_url":"https://api.github.com/users/bserdar/following{/other_user}","gists_url":"https://api.github.com/users/bserdar/gists{/gist_id}","starred_url":"https://api.github.com/users/bserdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bserdar/subscriptions","organizations_url":"https://api.github.com/users/bserdar/orgs","repos_url":"https://api.github.com/users/bserdar/repos","events_url":"https://api.github.com/users/bserdar/events{/privacy}","received_events_url":"https://api.github.com/users/bserdar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bserdar/lightblue-core","description":"Metadata driven cloud friendly data service framework ","fork":true,"url":"https://api.github.com/repos/bserdar/lightblue-core","forks_url":"https://api.github.com/repos/bserdar/lightblue-core/forks","keys_url":"https://api.github.com/repos/bserdar/lightblue-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bserdar/lightblue-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bserdar/lightblue-core/teams","hooks_url":"https://api.github.com/repos/bserdar/lightblue-core/hooks","issue_events_url":"https://api.github.com/repos/bserdar/lightblue-core/issues/events{/number}","events_url":"https://api.github.com/repos/bserdar/lightblue-core/events","assignees_url":"https://api.github.com/repos/bserdar/lightblue-core/assignees{/user}","branches_url":"https://api.github.com/repos/bserdar/lightblue-core/branches{/branch}","tags_url":"https://api.github.com/repos/bserdar/lightblue-core/tags","blobs_url":"https://api.github.com/repos/bserdar/lightblue-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bserdar/lightblue-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bserdar/lightblue-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/bserdar/lightblue-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bserdar/lightblue-core/statuses/{sha}","languages_url":"https://api.github.com/repos/bserdar/lightblue-core/languages","stargazers_url":"https://api.github.com/repos/bserdar/lightblue-core/stargazers","contributors_url":"https://api.github.com/repos/bserdar/lightblue-core/contributors","subscribers_url":"https://api.github.com/repos/bserdar/lightblue-core/subscribers","subscription_url":"https://api.github.com/repos/bserdar/lightblue-core/subscription","commits_url":"https://api.github.com/repos/bserdar/lightblue-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/bserdar/lightblue-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/bserdar/lightblue-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/bserdar/lightblue-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/bserdar/lightblue-core/contents/{+path}","compare_url":"https://api.github.com/repos/bserdar/lightblue-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bserdar/lightblue-core/merges","archive_url":"https://api.github.com/repos/bserdar/lightblue-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bserdar/lightblue-core/downloads","issues_url":"https://api.github.com/repos/bserdar/lightblue-core/issues{/number}","pulls_url":"https://api.github.com/repos/bserdar/lightblue-core/pulls{/number}","milestones_url":"https://api.github.com/repos/bserdar/lightblue-core/milestones{/number}","notifications_url":"https://api.github.com/repos/bserdar/lightblue-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bserdar/lightblue-core/labels{/name}","releases_url":"https://api.github.com/repos/bserdar/lightblue-core/releases{/id}","created_at":"2014-08-18T19:42:34Z","updated_at":"2015-04-29T19:32:51Z","pushed_at":"2015-07-30T17:16:35Z","git_url":"git://github.com/bserdar/lightblue-core.git","ssh_url":"git@github.com:bserdar/lightblue-core.git","clone_url":"https://github.com/bserdar/lightblue-core.git","svn_url":"https://github.com/bserdar/lightblue-core","homepage":"","size":8100,"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":"lightblue-platform:master","ref":"master","sha":"e54cb6244280d5029a00d7e7b427bfa4e755bed9","user":{"login":"lightblue-platform","id":7061725,"avatar_url":"https://avatars.githubusercontent.com/u/7061725?v=3","gravatar_id":"","url":"https://api.github.com/users/lightblue-platform","html_url":"https://github.com/lightblue-platform","followers_url":"https://api.github.com/users/lightblue-platform/followers","following_url":"https://api.github.com/users/lightblue-platform/following{/other_user}","gists_url":"https://api.github.com/users/lightblue-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/lightblue-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightblue-platform/subscriptions","organizations_url":"https://api.github.com/users/lightblue-platform/orgs","repos_url":"https://api.github.com/users/lightblue-platform/repos","events_url":"https://api.github.com/users/lightblue-platform/events{/privacy}","received_events_url":"https://api.github.com/users/lightblue-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":14145700,"name":"lightblue-core","full_name":"lightblue-platform/lightblue-core","owner":{"login":"lightblue-platform","id":7061725,"avatar_url":"https://avatars.githubusercontent.com/u/7061725?v=3","gravatar_id":"","url":"https://api.github.com/users/lightblue-platform","html_url":"https://github.com/lightblue-platform","followers_url":"https://api.github.com/users/lightblue-platform/followers","following_url":"https://api.github.com/users/lightblue-platform/following{/other_user}","gists_url":"https://api.github.com/users/lightblue-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/lightblue-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightblue-platform/subscriptions","organizations_url":"https://api.github.com/users/lightblue-platform/orgs","repos_url":"https://api.github.com/users/lightblue-platform/repos","events_url":"https://api.github.com/users/lightblue-platform/events{/privacy}","received_events_url":"https://api.github.com/users/lightblue-platform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lightblue-platform/lightblue-core","description":"Metadata driven cloud friendly data service framework ","fork":false,"url":"https://api.github.com/repos/lightblue-platform/lightblue-core","forks_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/forks","keys_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/teams","hooks_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/hooks","issue_events_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/events{/number}","events_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/events","assignees_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/assignees{/user}","branches_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/branches{/branch}","tags_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/tags","blobs_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/statuses/{sha}","languages_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/languages","stargazers_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/stargazers","contributors_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/contributors","subscribers_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/subscribers","subscription_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/subscription","commits_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/contents/{+path}","compare_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/merges","archive_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/downloads","issues_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues{/number}","pulls_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls{/number}","milestones_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/milestones{/number}","notifications_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/labels{/name}","releases_url":"https://api.github.com/repos/lightblue-platform/lightblue-core/releases{/id}","created_at":"2013-11-05T15:44:42Z","updated_at":"2015-07-22T22:17:30Z","pushed_at":"2015-07-30T17:17:44Z","git_url":"git://github.com/lightblue-platform/lightblue-core.git","ssh_url":"git@github.com:lightblue-platform/lightblue-core.git","clone_url":"https://github.com/lightblue-platform/lightblue-core.git","svn_url":"https://github.com/lightblue-platform/lightblue-core","homepage":"","size":12462,"stargazers_count":20,"watchers_count":20,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":79,"forks":11,"open_issues":79,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430"},"html":{"href":"https://github.com/lightblue-platform/lightblue-core/pull/430"},"issue":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/430"},"comments":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/issues/430/comments"},"review_comments":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430/comments"},"review_comment":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/pulls/430/commits"},"statuses":{"href":"https://api.github.com/repos/lightblue-platform/lightblue-core/statuses/fd7d1bc9b0a00ff95c844d4df0e0f35b62e2b746"}}}}