{"action":"opened","number":1375,"pull_request":{"url":"https://api.github.com/repos/flyway/flyway/pulls/1375","id":79004060,"html_url":"https://github.com/flyway/flyway/pull/1375","diff_url":"https://github.com/flyway/flyway/pull/1375.diff","patch_url":"https://github.com/flyway/flyway/pull/1375.patch","issue_url":"https://api.github.com/repos/flyway/flyway/issues/1375","number":1375,"state":"open","locked":false,"title":"Support dependency injection when resolving JdbcMigrations","user":{"login":"stacycurl","id":80608,"avatar_url":"https://avatars.githubusercontent.com/u/80608?v=3","gravatar_id":"","url":"https://api.github.com/users/stacycurl","html_url":"https://github.com/stacycurl","followers_url":"https://api.github.com/users/stacycurl/followers","following_url":"https://api.github.com/users/stacycurl/following{/other_user}","gists_url":"https://api.github.com/users/stacycurl/gists{/gist_id}","starred_url":"https://api.github.com/users/stacycurl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacycurl/subscriptions","organizations_url":"https://api.github.com/users/stacycurl/orgs","repos_url":"https://api.github.com/users/stacycurl/repos","events_url":"https://api.github.com/users/stacycurl/events{/privacy}","received_events_url":"https://api.github.com/users/stacycurl/received_events","type":"User","site_admin":false},"body":"By extracting the instantiation of JdbcMigrations into a protected 'instantiate' method\r\nit's possible for users of flyway to integrate with a dependency injection\r\nframework by overriding 'instantiate' for example\r\n\r\nFlyway flyway = new Flyway();\r\nflyway.setSkipDefaultResolvers(true);\r\nflyway.setResolvers(new JdbcMigrationResolver(...) {\r\n    @Override\r\n    protected JdbcMigration instantiate(String className, ClassLoader classLoader) throws Exception {\r\n        return ...;\r\n    }\r\n});","created_at":"2016-07-27T10:55:37Z","updated_at":"2016-07-27T10:55:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/flyway/flyway/pulls/1375/commits","review_comments_url":"https://api.github.com/repos/flyway/flyway/pulls/1375/comments","review_comment_url":"https://api.github.com/repos/flyway/flyway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/flyway/flyway/issues/1375/comments","statuses_url":"https://api.github.com/repos/flyway/flyway/statuses/2ff0c2f0a7f3cce912038b925aa975a2db7c8cbe","head":{"label":"stacycurl:di-jdbc","ref":"di-jdbc","sha":"2ff0c2f0a7f3cce912038b925aa975a2db7c8cbe","user":{"login":"stacycurl","id":80608,"avatar_url":"https://avatars.githubusercontent.com/u/80608?v=3","gravatar_id":"","url":"https://api.github.com/users/stacycurl","html_url":"https://github.com/stacycurl","followers_url":"https://api.github.com/users/stacycurl/followers","following_url":"https://api.github.com/users/stacycurl/following{/other_user}","gists_url":"https://api.github.com/users/stacycurl/gists{/gist_id}","starred_url":"https://api.github.com/users/stacycurl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacycurl/subscriptions","organizations_url":"https://api.github.com/users/stacycurl/orgs","repos_url":"https://api.github.com/users/stacycurl/repos","events_url":"https://api.github.com/users/stacycurl/events{/privacy}","received_events_url":"https://api.github.com/users/stacycurl/received_events","type":"User","site_admin":false},"repo":{"id":64300990,"name":"flyway","full_name":"stacycurl/flyway","owner":{"login":"stacycurl","id":80608,"avatar_url":"https://avatars.githubusercontent.com/u/80608?v=3","gravatar_id":"","url":"https://api.github.com/users/stacycurl","html_url":"https://github.com/stacycurl","followers_url":"https://api.github.com/users/stacycurl/followers","following_url":"https://api.github.com/users/stacycurl/following{/other_user}","gists_url":"https://api.github.com/users/stacycurl/gists{/gist_id}","starred_url":"https://api.github.com/users/stacycurl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stacycurl/subscriptions","organizations_url":"https://api.github.com/users/stacycurl/orgs","repos_url":"https://api.github.com/users/stacycurl/repos","events_url":"https://api.github.com/users/stacycurl/events{/privacy}","received_events_url":"https://api.github.com/users/stacycurl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stacycurl/flyway","description":"Flyway by Boxfuse • Database Migrations Made Easy.","fork":true,"url":"https://api.github.com/repos/stacycurl/flyway","forks_url":"https://api.github.com/repos/stacycurl/flyway/forks","keys_url":"https://api.github.com/repos/stacycurl/flyway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stacycurl/flyway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stacycurl/flyway/teams","hooks_url":"https://api.github.com/repos/stacycurl/flyway/hooks","issue_events_url":"https://api.github.com/repos/stacycurl/flyway/issues/events{/number}","events_url":"https://api.github.com/repos/stacycurl/flyway/events","assignees_url":"https://api.github.com/repos/stacycurl/flyway/assignees{/user}","branches_url":"https://api.github.com/repos/stacycurl/flyway/branches{/branch}","tags_url":"https://api.github.com/repos/stacycurl/flyway/tags","blobs_url":"https://api.github.com/repos/stacycurl/flyway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stacycurl/flyway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stacycurl/flyway/git/refs{/sha}","trees_url":"https://api.github.com/repos/stacycurl/flyway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stacycurl/flyway/statuses/{sha}","languages_url":"https://api.github.com/repos/stacycurl/flyway/languages","stargazers_url":"https://api.github.com/repos/stacycurl/flyway/stargazers","contributors_url":"https://api.github.com/repos/stacycurl/flyway/contributors","subscribers_url":"https://api.github.com/repos/stacycurl/flyway/subscribers","subscription_url":"https://api.github.com/repos/stacycurl/flyway/subscription","commits_url":"https://api.github.com/repos/stacycurl/flyway/commits{/sha}","git_commits_url":"https://api.github.com/repos/stacycurl/flyway/git/commits{/sha}","comments_url":"https://api.github.com/repos/stacycurl/flyway/comments{/number}","issue_comment_url":"https://api.github.com/repos/stacycurl/flyway/issues/comments{/number}","contents_url":"https://api.github.com/repos/stacycurl/flyway/contents/{+path}","compare_url":"https://api.github.com/repos/stacycurl/flyway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stacycurl/flyway/merges","archive_url":"https://api.github.com/repos/stacycurl/flyway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stacycurl/flyway/downloads","issues_url":"https://api.github.com/repos/stacycurl/flyway/issues{/number}","pulls_url":"https://api.github.com/repos/stacycurl/flyway/pulls{/number}","milestones_url":"https://api.github.com/repos/stacycurl/flyway/milestones{/number}","notifications_url":"https://api.github.com/repos/stacycurl/flyway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stacycurl/flyway/labels{/name}","releases_url":"https://api.github.com/repos/stacycurl/flyway/releases{/id}","deployments_url":"https://api.github.com/repos/stacycurl/flyway/deployments","created_at":"2016-07-27T10:52:06Z","updated_at":"2016-07-27T10:52:09Z","pushed_at":"2016-07-27T10:55:11Z","git_url":"git://github.com/stacycurl/flyway.git","ssh_url":"git@github.com:stacycurl/flyway.git","clone_url":"https://github.com/stacycurl/flyway.git","svn_url":"https://github.com/stacycurl/flyway","homepage":"https://flywaydb.org","size":11402,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"flyway:master","ref":"master","sha":"8b9dbfa1dc603338d7fba64c0bda973f89003952","user":{"login":"flyway","id":2109532,"avatar_url":"https://avatars.githubusercontent.com/u/2109532?v=3","gravatar_id":"","url":"https://api.github.com/users/flyway","html_url":"https://github.com/flyway","followers_url":"https://api.github.com/users/flyway/followers","following_url":"https://api.github.com/users/flyway/following{/other_user}","gists_url":"https://api.github.com/users/flyway/gists{/gist_id}","starred_url":"https://api.github.com/users/flyway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyway/subscriptions","organizations_url":"https://api.github.com/users/flyway/orgs","repos_url":"https://api.github.com/users/flyway/repos","events_url":"https://api.github.com/users/flyway/events{/privacy}","received_events_url":"https://api.github.com/users/flyway/received_events","type":"Organization","site_admin":false},"repo":{"id":7170058,"name":"flyway","full_name":"flyway/flyway","owner":{"login":"flyway","id":2109532,"avatar_url":"https://avatars.githubusercontent.com/u/2109532?v=3","gravatar_id":"","url":"https://api.github.com/users/flyway","html_url":"https://github.com/flyway","followers_url":"https://api.github.com/users/flyway/followers","following_url":"https://api.github.com/users/flyway/following{/other_user}","gists_url":"https://api.github.com/users/flyway/gists{/gist_id}","starred_url":"https://api.github.com/users/flyway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyway/subscriptions","organizations_url":"https://api.github.com/users/flyway/orgs","repos_url":"https://api.github.com/users/flyway/repos","events_url":"https://api.github.com/users/flyway/events{/privacy}","received_events_url":"https://api.github.com/users/flyway/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/flyway/flyway","description":"Flyway by Boxfuse • Database Migrations Made Easy.","fork":false,"url":"https://api.github.com/repos/flyway/flyway","forks_url":"https://api.github.com/repos/flyway/flyway/forks","keys_url":"https://api.github.com/repos/flyway/flyway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flyway/flyway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flyway/flyway/teams","hooks_url":"https://api.github.com/repos/flyway/flyway/hooks","issue_events_url":"https://api.github.com/repos/flyway/flyway/issues/events{/number}","events_url":"https://api.github.com/repos/flyway/flyway/events","assignees_url":"https://api.github.com/repos/flyway/flyway/assignees{/user}","branches_url":"https://api.github.com/repos/flyway/flyway/branches{/branch}","tags_url":"https://api.github.com/repos/flyway/flyway/tags","blobs_url":"https://api.github.com/repos/flyway/flyway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flyway/flyway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flyway/flyway/git/refs{/sha}","trees_url":"https://api.github.com/repos/flyway/flyway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flyway/flyway/statuses/{sha}","languages_url":"https://api.github.com/repos/flyway/flyway/languages","stargazers_url":"https://api.github.com/repos/flyway/flyway/stargazers","contributors_url":"https://api.github.com/repos/flyway/flyway/contributors","subscribers_url":"https://api.github.com/repos/flyway/flyway/subscribers","subscription_url":"https://api.github.com/repos/flyway/flyway/subscription","commits_url":"https://api.github.com/repos/flyway/flyway/commits{/sha}","git_commits_url":"https://api.github.com/repos/flyway/flyway/git/commits{/sha}","comments_url":"https://api.github.com/repos/flyway/flyway/comments{/number}","issue_comment_url":"https://api.github.com/repos/flyway/flyway/issues/comments{/number}","contents_url":"https://api.github.com/repos/flyway/flyway/contents/{+path}","compare_url":"https://api.github.com/repos/flyway/flyway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flyway/flyway/merges","archive_url":"https://api.github.com/repos/flyway/flyway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flyway/flyway/downloads","issues_url":"https://api.github.com/repos/flyway/flyway/issues{/number}","pulls_url":"https://api.github.com/repos/flyway/flyway/pulls{/number}","milestones_url":"https://api.github.com/repos/flyway/flyway/milestones{/number}","notifications_url":"https://api.github.com/repos/flyway/flyway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flyway/flyway/labels{/name}","releases_url":"https://api.github.com/repos/flyway/flyway/releases{/id}","deployments_url":"https://api.github.com/repos/flyway/flyway/deployments","created_at":"2012-12-14T18:43:22Z","updated_at":"2016-07-27T08:49:44Z","pushed_at":"2016-07-27T06:19:15Z","git_url":"git://github.com/flyway/flyway.git","ssh_url":"git@github.com:flyway/flyway.git","clone_url":"https://github.com/flyway/flyway.git","svn_url":"https://github.com/flyway/flyway","homepage":"https://flywaydb.org","size":11402,"stargazers_count":1442,"watchers_count":1442,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":462,"mirror_url":null,"open_issues_count":178,"forks":462,"open_issues":178,"watchers":1442,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/flyway/flyway/pulls/1375"},"html":{"href":"https://github.com/flyway/flyway/pull/1375"},"issue":{"href":"https://api.github.com/repos/flyway/flyway/issues/1375"},"comments":{"href":"https://api.github.com/repos/flyway/flyway/issues/1375/comments"},"review_comments":{"href":"https://api.github.com/repos/flyway/flyway/pulls/1375/comments"},"review_comment":{"href":"https://api.github.com/repos/flyway/flyway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/flyway/flyway/pulls/1375/commits"},"statuses":{"href":"https://api.github.com/repos/flyway/flyway/statuses/2ff0c2f0a7f3cce912038b925aa975a2db7c8cbe"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"stacycurl"}}