{"action":"opened","issue":{"url":"https://api.github.com/repos/fabric8io/fabric8/issues/5324","labels_url":"https://api.github.com/repos/fabric8io/fabric8/issues/5324/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/fabric8/issues/5324/comments","events_url":"https://api.github.com/repos/fabric8io/fabric8/issues/5324/events","html_url":"https://github.com/fabric8io/fabric8/issues/5324","id":118807998,"number":5324,"title":"Camel forge - Scan for endpoints in route builder configure methods","user":{"login":"davsclaus","id":477100,"avatar_url":"https://avatars.githubusercontent.com/u/477100?v=3","gravatar_id":"","url":"https://api.github.com/users/davsclaus","html_url":"https://github.com/davsclaus","followers_url":"https://api.github.com/users/davsclaus/followers","following_url":"https://api.github.com/users/davsclaus/following{/other_user}","gists_url":"https://api.github.com/users/davsclaus/gists{/gist_id}","starred_url":"https://api.github.com/users/davsclaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davsclaus/subscriptions","organizations_url":"https://api.github.com/users/davsclaus/orgs","repos_url":"https://api.github.com/users/davsclaus/repos","events_url":"https://api.github.com/users/davsclaus/events{/privacy}","received_events_url":"https://api.github.com/users/davsclaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-25T10:42:54Z","updated_at":"2015-11-25T10:42:54Z","closed_at":null,"body":"We scan for endpoints as fields\r\nio.fabric8.forge.camel.commands.project.completer.RouteBuilderCamelEndpointsVisitor\r\n\r\nBut we could be more clever and check inside the configure method, and parse the route dsl, to find endpoints.\r\n\r\nWe could maybe enrich the camel model to provide details where endpoint uris can be configured, so the tooling can know exactly where they are.\r\n\r\nAs alternative until then we can look for string values, and try to see if there is a camel component with that name, eg `file:xxx' and then assume its a camel endpoint."}}