{"action":"created","comment":{"url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/comments/26619191","id":26619191,"diff_hunk":"@@ -0,0 +1,55 @@\n+<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n+<beans xmlns=\"http://www.springframework.org/schema/beans\"\n+       xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n+       xmlns:context=\"http://www.springframework.org/schema/context\"\n+       xsi:schemaLocation=\"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd\n+       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd\">\n+\n+    <context:annotation-config/>\n+\n+    <context:component-scan base-package=\"org.fcrepo\"/>\n+<!--  \n+    <bean class=\"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer\">\n+        <property name=\"location\">\n+            <value>Migrator.properties</value>\n+        </property>\n+    </bean> \n+ -->\n+\n+    <bean id=\"directoryScanningIDResolver\" class=\"org.fcrepo.migration.foxml11.DirectoryScanningIDResolver\">\n+        <constructor-arg value=\"target/index\"/>\n+        <constructor-arg value =\"src/test/resources/datastreamStore\" />\n+    </bean>\n+\n+    <bean id=\"httpClientURLFetcher\" class=\"org.fcrepo.migration.foxml11.HttpClientURLFetcher\">\n+    </bean>\n+ \n+    <bean id=\"foxmlDirectoryObjectSource\" class=\"org.fcrepo.migration.foxml11.FoxmlDirectoryObjectSource\" init-method=\"init\">    \n+        <property name=\"resolver\" ref=\"directoryScanningIDResolver\"/>\n+        <property name=\"fetcher\" ref=\"httpClientURLFetcher\"/>\n+        <property name=\"root\" value=\"src/test/resources/objectStore\"/>\n+        <property name=\"objectStore\" value=\"src/test/resources/objectStore\"/>\n+        <property name=\"datastreamStore\" value=\"src/test/resources/datastreamStore\"/>\n+        <property name=\"workingDir\" value=\"target/index\"/>\n+     </bean>\n+ \n+    <bean id=\"consoleLoggingStreamingFedoraObjectHandler\" class=\"org.fcrepo.migration.handlers.ConsoleLoggingStreamingFedoraObjectHandler\">","path":"src/main/resources/spring/migration-bean.xml","position":36,"original_position":36,"commit_id":"593f09d3eb5efdf20d082092dabec6baf52affe1","original_commit_id":"593f09d3eb5efdf20d082092dabec6baf52affe1","user":{"login":"awoods","id":149283,"avatar_url":"https://avatars.githubusercontent.com/u/149283?v=3","gravatar_id":"","url":"https://api.github.com/users/awoods","html_url":"https://github.com/awoods","followers_url":"https://api.github.com/users/awoods/followers","following_url":"https://api.github.com/users/awoods/following{/other_user}","gists_url":"https://api.github.com/users/awoods/gists{/gist_id}","starred_url":"https://api.github.com/users/awoods/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awoods/subscriptions","organizations_url":"https://api.github.com/users/awoods/orgs","repos_url":"https://api.github.com/users/awoods/repos","events_url":"https://api.github.com/users/awoods/events{/privacy}","received_events_url":"https://api.github.com/users/awoods/received_events","type":"User","site_admin":false},"body":"Instead of defining a bean for this ObjectHandler, you should be able to take advantage of the \"context:component-scan\" above and annotate the \"ConsoleLoggingStreamingFedoraObjectHandler\" with \"@Component\"","created_at":"2015-03-17T21:39:43Z","updated_at":"2015-03-17T21:39:43Z","html_url":"https://github.com/fcrepo4-labs/migration-utils/pull/1#discussion_r26619191","pull_request_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/comments/26619191"},"html":{"href":"https://github.com/fcrepo4-labs/migration-utils/pull/1#discussion_r26619191"},"pull_request":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1","id":31260006,"html_url":"https://github.com/fcrepo4-labs/migration-utils/pull/1","diff_url":"https://github.com/fcrepo4-labs/migration-utils/pull/1.diff","patch_url":"https://github.com/fcrepo4-labs/migration-utils/pull/1.patch","issue_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/issues/1","number":1,"state":"open","locked":false,"title":"Fcrepo 1386 new","user":{"login":"nianma","id":10924728,"avatar_url":"https://avatars.githubusercontent.com/u/10924728?v=3","gravatar_id":"","url":"https://api.github.com/users/nianma","html_url":"https://github.com/nianma","followers_url":"https://api.github.com/users/nianma/followers","following_url":"https://api.github.com/users/nianma/following{/other_user}","gists_url":"https://api.github.com/users/nianma/gists{/gist_id}","starred_url":"https://api.github.com/users/nianma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nianma/subscriptions","organizations_url":"https://api.github.com/users/nianma/orgs","repos_url":"https://api.github.com/users/nianma/repos","events_url":"https://api.github.com/users/nianma/events{/privacy}","received_events_url":"https://api.github.com/users/nianma/received_events","type":"User","site_admin":false},"body":"I setup the spring framework for the project by adding migration-bean.xml and changing pom.xml.\r\nI changed the Migrator.java and FoxmlDirectoryObjectSource.java. I touched FoxmlStorageMigratorTest.java, but didn't have a good way to rewrite SimpleObjectSource.java. Any suggestion on how to refactor the test code?","created_at":"2015-03-16T16:33:17Z","updated_at":"2015-03-17T21:39:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a8978c54874989540478a28320f23012d855ecf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/issues/1/comments","statuses_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/statuses/593f09d3eb5efdf20d082092dabec6baf52affe1","head":{"label":"nianma:fcrepo-1386-new","ref":"fcrepo-1386-new","sha":"593f09d3eb5efdf20d082092dabec6baf52affe1","user":{"login":"nianma","id":10924728,"avatar_url":"https://avatars.githubusercontent.com/u/10924728?v=3","gravatar_id":"","url":"https://api.github.com/users/nianma","html_url":"https://github.com/nianma","followers_url":"https://api.github.com/users/nianma/followers","following_url":"https://api.github.com/users/nianma/following{/other_user}","gists_url":"https://api.github.com/users/nianma/gists{/gist_id}","starred_url":"https://api.github.com/users/nianma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nianma/subscriptions","organizations_url":"https://api.github.com/users/nianma/orgs","repos_url":"https://api.github.com/users/nianma/repos","events_url":"https://api.github.com/users/nianma/events{/privacy}","received_events_url":"https://api.github.com/users/nianma/received_events","type":"User","site_admin":false},"repo":{"id":31900995,"name":"migration-utils","full_name":"nianma/migration-utils","owner":{"login":"nianma","id":10924728,"avatar_url":"https://avatars.githubusercontent.com/u/10924728?v=3","gravatar_id":"","url":"https://api.github.com/users/nianma","html_url":"https://github.com/nianma","followers_url":"https://api.github.com/users/nianma/followers","following_url":"https://api.github.com/users/nianma/following{/other_user}","gists_url":"https://api.github.com/users/nianma/gists{/gist_id}","starred_url":"https://api.github.com/users/nianma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nianma/subscriptions","organizations_url":"https://api.github.com/users/nianma/orgs","repos_url":"https://api.github.com/users/nianma/repos","events_url":"https://api.github.com/users/nianma/events{/privacy}","received_events_url":"https://api.github.com/users/nianma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nianma/migration-utils","description":"An in-development framework for managing data migrations from previous versons to 4.x.","fork":true,"url":"https://api.github.com/repos/nianma/migration-utils","forks_url":"https://api.github.com/repos/nianma/migration-utils/forks","keys_url":"https://api.github.com/repos/nianma/migration-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nianma/migration-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nianma/migration-utils/teams","hooks_url":"https://api.github.com/repos/nianma/migration-utils/hooks","issue_events_url":"https://api.github.com/repos/nianma/migration-utils/issues/events{/number}","events_url":"https://api.github.com/repos/nianma/migration-utils/events","assignees_url":"https://api.github.com/repos/nianma/migration-utils/assignees{/user}","branches_url":"https://api.github.com/repos/nianma/migration-utils/branches{/branch}","tags_url":"https://api.github.com/repos/nianma/migration-utils/tags","blobs_url":"https://api.github.com/repos/nianma/migration-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nianma/migration-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nianma/migration-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/nianma/migration-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nianma/migration-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/nianma/migration-utils/languages","stargazers_url":"https://api.github.com/repos/nianma/migration-utils/stargazers","contributors_url":"https://api.github.com/repos/nianma/migration-utils/contributors","subscribers_url":"https://api.github.com/repos/nianma/migration-utils/subscribers","subscription_url":"https://api.github.com/repos/nianma/migration-utils/subscription","commits_url":"https://api.github.com/repos/nianma/migration-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/nianma/migration-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/nianma/migration-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/nianma/migration-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/nianma/migration-utils/contents/{+path}","compare_url":"https://api.github.com/repos/nianma/migration-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nianma/migration-utils/merges","archive_url":"https://api.github.com/repos/nianma/migration-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nianma/migration-utils/downloads","issues_url":"https://api.github.com/repos/nianma/migration-utils/issues{/number}","pulls_url":"https://api.github.com/repos/nianma/migration-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/nianma/migration-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/nianma/migration-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nianma/migration-utils/labels{/name}","releases_url":"https://api.github.com/repos/nianma/migration-utils/releases{/id}","created_at":"2015-03-09T13:52:56Z","updated_at":"2015-03-09T13:52:56Z","pushed_at":"2015-03-17T18:20:03Z","git_url":"git://github.com/nianma/migration-utils.git","ssh_url":"git@github.com:nianma/migration-utils.git","clone_url":"https://github.com/nianma/migration-utils.git","svn_url":"https://github.com/nianma/migration-utils","homepage":null,"size":212,"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":"fcrepo4-labs:master","ref":"master","sha":"d3edfff3576f7bce00330ad1164c6406d6971bf8","user":{"login":"fcrepo4-labs","id":7586101,"avatar_url":"https://avatars.githubusercontent.com/u/7586101?v=3","gravatar_id":"","url":"https://api.github.com/users/fcrepo4-labs","html_url":"https://github.com/fcrepo4-labs","followers_url":"https://api.github.com/users/fcrepo4-labs/followers","following_url":"https://api.github.com/users/fcrepo4-labs/following{/other_user}","gists_url":"https://api.github.com/users/fcrepo4-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/fcrepo4-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcrepo4-labs/subscriptions","organizations_url":"https://api.github.com/users/fcrepo4-labs/orgs","repos_url":"https://api.github.com/users/fcrepo4-labs/repos","events_url":"https://api.github.com/users/fcrepo4-labs/events{/privacy}","received_events_url":"https://api.github.com/users/fcrepo4-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":30264953,"name":"migration-utils","full_name":"fcrepo4-labs/migration-utils","owner":{"login":"fcrepo4-labs","id":7586101,"avatar_url":"https://avatars.githubusercontent.com/u/7586101?v=3","gravatar_id":"","url":"https://api.github.com/users/fcrepo4-labs","html_url":"https://github.com/fcrepo4-labs","followers_url":"https://api.github.com/users/fcrepo4-labs/followers","following_url":"https://api.github.com/users/fcrepo4-labs/following{/other_user}","gists_url":"https://api.github.com/users/fcrepo4-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/fcrepo4-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcrepo4-labs/subscriptions","organizations_url":"https://api.github.com/users/fcrepo4-labs/orgs","repos_url":"https://api.github.com/users/fcrepo4-labs/repos","events_url":"https://api.github.com/users/fcrepo4-labs/events{/privacy}","received_events_url":"https://api.github.com/users/fcrepo4-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fcrepo4-labs/migration-utils","description":"An in-development framework for managing data migrations from previous versons to 4.x.","fork":false,"url":"https://api.github.com/repos/fcrepo4-labs/migration-utils","forks_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/forks","keys_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/teams","hooks_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/hooks","issue_events_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/issues/events{/number}","events_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/events","assignees_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/assignees{/user}","branches_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/branches{/branch}","tags_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/tags","blobs_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/languages","stargazers_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/stargazers","contributors_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/contributors","subscribers_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/subscribers","subscription_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/subscription","commits_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/contents/{+path}","compare_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/merges","archive_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/downloads","issues_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/issues{/number}","pulls_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/labels{/name}","releases_url":"https://api.github.com/repos/fcrepo4-labs/migration-utils/releases{/id}","created_at":"2015-02-03T21:15:45Z","updated_at":"2015-03-04T15:10:23Z","pushed_at":"2015-03-04T15:10:23Z","git_url":"git://github.com/fcrepo4-labs/migration-utils.git","ssh_url":"git@github.com:fcrepo4-labs/migration-utils.git","clone_url":"https://github.com/fcrepo4-labs/migration-utils.git","svn_url":"https://github.com/fcrepo4-labs/migration-utils","homepage":null,"size":212,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1"},"html":{"href":"https://github.com/fcrepo4-labs/migration-utils/pull/1"},"issue":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/issues/1"},"comments":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fcrepo4-labs/migration-utils/statuses/593f09d3eb5efdf20d082092dabec6baf52affe1"}}}}