{"action":"created","issue":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/724","repository_url":"https://api.github.com/repos/graphhopper/graphhopper","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/724/comments","events_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/724/events","html_url":"https://github.com/graphhopper/graphhopper/issues/724","id":155020564,"number":724,"title":"Post/Pre processing and load hooks","user":{"login":"karussell","id":129644,"avatar_url":"https://avatars.githubusercontent.com/u/129644?v=3","gravatar_id":"","url":"https://api.github.com/users/karussell","html_url":"https://github.com/karussell","followers_url":"https://api.github.com/users/karussell/followers","following_url":"https://api.github.com/users/karussell/following{/other_user}","gists_url":"https://api.github.com/users/karussell/gists{/gist_id}","starred_url":"https://api.github.com/users/karussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karussell/subscriptions","organizations_url":"https://api.github.com/users/karussell/orgs","repos_url":"https://api.github.com/users/karussell/repos","events_url":"https://api.github.com/users/karussell/events{/privacy}","received_events_url":"https://api.github.com/users/karussell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/graphhopper/graphhopper/labels/improvement","name":"improvement","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/graphhopper/graphhopper/milestones/8","html_url":"https://github.com/graphhopper/graphhopper/milestones/0.7","labels_url":"https://api.github.com/repos/graphhopper/graphhopper/milestones/8/labels","id":1542551,"number":8,"title":"0.7","description":"","creator":{"login":"karussell","id":129644,"avatar_url":"https://avatars.githubusercontent.com/u/129644?v=3","gravatar_id":"","url":"https://api.github.com/users/karussell","html_url":"https://github.com/karussell","followers_url":"https://api.github.com/users/karussell/followers","following_url":"https://api.github.com/users/karussell/following{/other_user}","gists_url":"https://api.github.com/users/karussell/gists{/gist_id}","starred_url":"https://api.github.com/users/karussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karussell/subscriptions","organizations_url":"https://api.github.com/users/karussell/orgs","repos_url":"https://api.github.com/users/karussell/repos","events_url":"https://api.github.com/users/karussell/events{/privacy}","received_events_url":"https://api.github.com/users/karussell/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":34,"state":"open","created_at":"2016-01-25T19:54:56Z","updated_at":"2016-05-16T12:35:14Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-05-16T12:35:14Z","updated_at":"2016-05-16T12:54:00Z","closed_at":null,"body":"We need a more explicit way for a pre/post preparation or load hook instead of overloading methods of GraphHopper - or is this okay and needs just some more tests and docs? \r\n\r\nShould we just use a listener list instead?\r\n```java\r\ngraphHopper.addHook(new Hook() {\r\n        boolean beforeLoad(/* what args? */) { /*return false if load should not be called*/ }\r\n        boolean beforeImport(/* what args? */) {}\r\n        boolean beforePreprocessing(/* what args? */) {}\r\n        void afterLoad(/* what args? */) {}\r\n        void afterImport(/* what args? */) {}\r\n        void afterPreparation(/* what args? */) {}\r\n});\r\n```\r\n\r\nSee #700 and https://github.com/karussell/graphhopper-osm-id-mapping/issues/1 for the issue behind this."},"comment":{"url":"https://api.github.com/repos/graphhopper/graphhopper/issues/comments/219417798","html_url":"https://github.com/graphhopper/graphhopper/issues/724#issuecomment-219417798","issue_url":"https://api.github.com/repos/graphhopper/graphhopper/issues/724","id":219417798,"user":{"login":"devemux86","id":3484020,"avatar_url":"https://avatars.githubusercontent.com/u/3484020?v=3","gravatar_id":"","url":"https://api.github.com/users/devemux86","html_url":"https://github.com/devemux86","followers_url":"https://api.github.com/users/devemux86/followers","following_url":"https://api.github.com/users/devemux86/following{/other_user}","gists_url":"https://api.github.com/users/devemux86/gists{/gist_id}","starred_url":"https://api.github.com/users/devemux86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devemux86/subscriptions","organizations_url":"https://api.github.com/users/devemux86/orgs","repos_url":"https://api.github.com/users/devemux86/repos","events_url":"https://api.github.com/users/devemux86/events{/privacy}","received_events_url":"https://api.github.com/users/devemux86/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T12:54:00Z","updated_at":"2016-05-16T12:54:00Z","body":">Which situations do you mean here?\r\n\r\nI have no actual cases here, like that which initiated this.\r\nJust with removing functionality worries me when we may need it in the future. :smile: "}}