private List<Long> commentIds = new ArrayList<Long>();
public PullRequestCommentConsumer(GitHubEndpoint endpoint, Processor processor) throws Exception {
super(endpoint, processor);
Registry registry = endpoint.getCamelContext().getRegistry();
Object service = registry.lookupByName("githubPullRequestService");
if (service != null) {
LOG.debug("Using PullRequestService found in registry " + service.getClass().getCanonicalName());
pullRequestService = (PullRequestService) service;
} else {
pullRequestService = new PullRequestService();
}
initService(pullRequestService);
service = registry.lookupByName("githbIssueService");
if (service != null) {
issueService = (IssueService) service;
} else {
issueService = new IssueService();
}