InstructorReportJobSingleGameFactory.java
package edu.ucsb.cs156.happiercows.jobs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import edu.ucsb.cs156.happiercows.repositories.GameRepository;
import edu.ucsb.cs156.happiercows.services.ReportService;
import edu.ucsb.cs156.jobs.services.JobContextConsumer;
@Service
public class InstructorReportJobSingleGameFactory {
@Autowired
private ReportService reportService;
@Autowired
private GameRepository gameRepository;
public JobContextConsumer create(long gameId) {
return new InstructorReportJobSingleGame(gameId, reportService, gameRepository);
}
}